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
2
2
3
- name : Run fourndry-voting Tests on PR
4
3
on :
5
4
pull_request :
6
5
paths :
@@ -14,26 +13,50 @@ jobs:
14
13
15
14
runs-on : ubuntu-latest
16
15
steps :
17
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
18
17
19
18
- 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
21
32
with :
22
- toolchain : stable
33
+ bun-version : latest
34
+
35
+ - name : Install Dependencies
36
+ run : bun install
23
37
24
38
- name : Install Foundry
25
39
uses : foundry-rs/foundry-toolchain@v1
40
+ with :
41
+ version : nightly
26
42
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
31
45
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
36
48
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