-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.07 KB
/
test.yml
File metadata and controls
45 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: test
on:
push:
paths-ignore:
- LICENSE
- README.*
- examples
- .github/workflows
pull_request:
paths-ignore:
- LICENSE
- README.*
- examples
- .github/workflows
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
nim-version:
- 'stable'
steps:
- uses: actions/checkout@v3
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install libpcre and luajit
run: sudo apt-get install -y libluajit-5.1-dev luajit libpcre3-dev
- name: Install cmake-js for building node bindings"
run: "npm install cmake-js -g"
- name: "Install Denim for building node bindings"
run: "nimble install -y denim"
- name: "Install & test via Nimble"
run: |
nimble install -Y
nimble test
- name: "Build a Node addon via Denim"
run: denim build src/${{ github.event.repository.name }}.nim -r -y --cmake