fix merge conflict - new Poseidon2 #70
Workflow file for this run
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 | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 600 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Elan | |
run: | | |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y -v --default-toolchain leanprover/lean4:nightly-2023-07-12 | |
echo "LAKE_VERSION=$(~/.elan/bin/lake --version)" >> $GITHUB_ENV | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: formal-verification/lake-packages | |
key: "${{ env.LAKE_VERSION }}" | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: './go.mod' | |
- name: Build | |
run: go build | |
- name: Test | |
run: go test | |
- name: Export circuit | |
run: ./gnark-mbu extract-circuit --output=formal-verification/FormalVerification.lean | |
- name: Build lean project | |
run: | | |
cd formal-verification | |
~/.elan/bin/lake exe cache get | |
~/.elan/bin/lake build |