foundry voting example<updated> #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
run: | | |
curl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash | |
export PATH="$HOME/.nargo/bin:$PATH" | |
noirup | |
- name: Install Barretenberg | |
run: | | |
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash | |
export PATH="$HOME/.bbup/bin:$PATH" | |
bbup | |
- 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 |