Skip to content

Commit

Permalink
fix: update workflow to account for new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Aug 22, 2023
1 parent 3d16c2f commit 67fc5eb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,22 @@ jobs:
- run: nargo new project
- run: nargo check
working-directory: ./project
- run: nargo compile test-circuit
- run: |
if [[ "${{ matrix.toolchain }}" == "stable" || "${{ matrix.toolchain }}" == "nightly" ]]; then
nargo compile
else
minor=$(echo "${{ matrix.toolchain }}" | cut -d '.' -f 2)
# The version in which the compile syntax changed
if [ "$minor" -lt 10 ]; then
nargo compile test-circuit
else
nargo compile
fi
fi
name: nargo compile
working-directory: ./project
shell: bash
- run: nargo test
if: matrix.toolchain != '0.1.0'
working-directory: ./project

0 comments on commit 67fc5eb

Please sign in to comment.