-
Notifications
You must be signed in to change notification settings - Fork 18
67 lines (51 loc) · 1.43 KB
/
foundry-voting.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
62
63
64
65
66
67
name: Run Foundry-Voting Tests
on:
pull_request:
paths:
- 'foundry-voting/**'
workflow_dispatch:
jobs:
test:
defaults:
run:
working-directory: foundry-voting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nargo
uses: noir-lang/noirup@v0.1.2
with:
toolchain: stable
- name: Install bb
run: |
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/master/barretenberg/cpp/installation/install | bash
echo "PATH=$PATH:/home/runner/.bb" >> $GITHUB_ENV
shell: bash
- name: Use bbup
run: |
bbup
shell: bash
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependencies
run: bun install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Circuit Tests
run: bun run circuits:test
- name: Execute Circuits
run: bun run circuits:execute
- name: Generate UltraPlonk Proof
run: bun run circuits:ultraplonk:generate-proof
- name: Generate Verification Key
run: bun run circuits:ultraplonk:generate-vk
- name: Generate Circuit Contract
run: bun run circuits:contract
- name: Clean UltraPlonk Proof
run: bun run ultraplonk:clean-proof
- name: Run Forge Tests
run: forge test