Skip to content

Commit b76328a

Browse files
committed
chore: fix foundry ci pipeline
1 parent f32a29a commit b76328a

File tree

1 file changed

+39
-16
lines changed

1 file changed

+39
-16
lines changed

.github/workflows/foundry-voting.yml

+39-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# a github workflow that runs curl -L https://foundry.paradigm.xyz | bash then nargo codegen-verifier then nargo prove p
1+
name: Run Foundry-Voting Tests
22

3-
name: Run fourndry-voting Tests on PR
43
on:
54
pull_request:
65
paths:
@@ -14,26 +13,50 @@ jobs:
1413

1514
runs-on: ubuntu-latest
1615
steps:
17-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1817

1918
- name: Install Nargo
20-
uses: noir-lang/noirup@v0.1.2
19+
run: |
20+
curl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash
21+
export PATH="$HOME/.nargo/bin:$PATH"
22+
noirup
23+
24+
- name: Install Barretenberg
25+
run: |
26+
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash
27+
export PATH="$HOME/.bbup/bin:$PATH"
28+
bbup
29+
30+
- name: Install Bun
31+
uses: oven-sh/setup-bun@v1
2132
with:
22-
toolchain: stable
33+
bun-version: latest
34+
35+
- name: Install Dependencies
36+
run: bun install
2337

2438
- name: Install Foundry
2539
uses: foundry-rs/foundry-toolchain@v1
40+
with:
41+
version: nightly
2642

27-
- name: Generate verifier contract
28-
run: |
29-
nargo codegen-verifier
30-
working-directory: foundry-voting/circuits
43+
- name: Run Circuit Tests
44+
run: bun run circuits:test
3145

32-
- name: Generate proof
33-
run: |
34-
nargo prove
35-
working-directory: foundry-voting/circuits
46+
- name: Execute Circuits
47+
run: bun run circuits:execute
3648

37-
- name: Test with Foundry
38-
run: |
39-
forge test --optimize --optimizer-runs 5000 --evm-version london
49+
- name: Generate UltraPlonk Proof
50+
run: bun run circuits:ultraplonk:generate-proof
51+
52+
- name: Generate Verification Key
53+
run: bun run circuits:ultraplonk:generate-vk
54+
55+
- name: Generate Circuit Contract
56+
run: bun run circuits:contract
57+
58+
- name: Clean UltraPlonk Proof
59+
run: bun run ultraplonk:clean-proof
60+
61+
- name: Run Forge Tests
62+
run: forge test

0 commit comments

Comments
 (0)