-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (47 loc) · 1.26 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened
- ready_for_review
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 --tree-depth 30 --batch-size 4
- name: Build lean project
run: |
cd formal-verification
ulimit -s 65520
~/.elan/bin/lake exe cache get
~/.elan/bin/lake build