-
Notifications
You must be signed in to change notification settings - Fork 370
61 lines (54 loc) · 1.63 KB
/
docker-gnark.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
57
58
59
60
61
# This workflow generates and tests the docker image for groth16 and plonk proving.
name: Docker Gnark
on:
push:
branches: [main, dev]
pull_request:
branches:
- "**"
paths:
- "crates/**"
- "Cargo.toml"
- ".github/workflows/**"
merge_group:
jobs:
test-docker:
name: Test
runs-on:
[
runs-on,
runner=64cpu-linux-arm64,
spot=false,
"run-id=${{ github.run_id }}",
]
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
- name: Build docker image
run: |
docker build -t sp1-gnark -f ./Dockerfile.gnark-ffi .
- name: Run cargo test
uses: actions-rs/cargo@v1
env:
SP1_GNARK_IMAGE: sp1-gnark
RUST_LOG: info
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
RUST_BACKTRACE: 1
with:
command: test
toolchain: 1.81.0
args: --release -p sp1-prover -- --exact tests::test_e2e --nocapture
- name: Make sure the contracts were modified
run: |
if grep -q "pragma solidity ^0.8.0" ~/.sp1/circuits/dev/Groth16Verifier.sol; then
echo "Error: Groth16Verifier.sol still contains the old pragma version"
exit 1
fi
if grep -q "pragma solidity ^0.8.0" ~/.sp1/circuits/dev/PlonkVerifier.sol; then
echo "Error: PlonkVerifier.sol still contains the old pragma version"
exit 1
fi