Skip to content

Merge pull request #33 from izumiya-keisuke/sim #15

Merge pull request #33 from izumiya-keisuke/sim

Merge pull request #33 from izumiya-keisuke/sim #15

Workflow file for this run

name: Run Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-
if: runner.os != 'Windows'
- uses: jiro4989/setup-nim-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble -y install -d
if: runner.os == 'Linux'
- run: nimble -y install -d "-p:-d:avx2=false"
if: runner.os == 'Windows'
- run: nimble -y install -d -p:-d:avx2=false -p:-d:bmi2=false
if: runner.os == 'macOS'
- run: nim c -r ./tests/makeTest.nim
if: runner.os == 'Linux'
- run: nim c -r -d:avx2=false ./tests/makeTest.nim
if: runner.os == 'Windows'
- run: nim c -r -d:bmi2=false -d:avx2=false ./tests/makeTest.nim
if: runner.os == 'macOS'
- run: nimble -y test