Update test.yaml #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- macOS-latest | |
- windows-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 -Y | |
- 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" |