fix prs #146
This file contains hidden or 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
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
nimversion: | |
- '2.x' | |
# - '2.0.14' | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache packages | |
if: matrix.nimversion != '2.0.14' | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-${{ hashFiles('figuro.nimble') }} | |
- uses: iffy/install-nim@v4 | |
with: | |
version: ${{ matrix.nimversion }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Nimble | |
run: | | |
nimble install nimble@0.18.2 | |
nim -v | |
nimble -v | |
- name: Install Deps | |
run: | | |
# sync deps | |
nimble install -d --verbose | |
- name: Build Tests | |
run: | | |
nim test |