-
Notifications
You must be signed in to change notification settings - Fork 23
56 lines (45 loc) · 1.63 KB
/
proof_verification_tests.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
48
49
50
51
52
53
54
55
56
name: Continuous Integration - proof verification tests
on:
push:
# branches:
# - main
pull_request:
# branches:
# - main
jobs:
verify-proof:
runs-on: ubuntu-latest
strategy:
matrix:
layout: ["dex", "recursive", "recursive_with_poseidon", "small", "starknet", "starknet_with_keccak"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Checkout custom scarb
uses: actions/checkout@v3
with:
repository: fmkra/scarb
- name: Build custom scarb
run: cd scarb && cargo build
working-directory: scarb
- name: Build project
run: ./scarb/target/debug/scarb build --no-default-features --features=${{ matrix.layout }},keccak
working-directory: $GITHUB_WORKSPACE
- name: Test project
run: ./scarb/target/debug/scarb test --no-default-features --features=${{ matrix.layout }},keccak
working-directory: $GITHUB_WORKSPACE
- name: Run verification
run: cargo run --bin runner -- target/dev/cairo_verifier.sierra.json < examples/proofs/${{ matrix.layout }}/example_proof.json
working-directory: $GITHUB_WORKSPACE