-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 965 Bytes
/
test.yaml
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
name: test
on:
push:
paths-ignore:
- LICENSE
- README.*
pull_request:
paths-ignore:
- LICENSE
- README.*
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
nim-version:
- 'stable'
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@v2
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: "npm install node-gyp -g"
- run: "npm install cmake-js -g"
- run: "choosenim show path -y"
- run: nimble install denim@#head
- run: nimble test
- name: "test denim on windows"
if: matrix.os == 'windows-latest'
run: "denim.exe build tests\\myaddon.nim -r -y --cmake"
- name: 'test denim on unix'
run: "denim build tests/myaddon.nim -r -y --cmake"