Add pedersen hash for Noir #194
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: Test | |
on: | |
push: | |
paths: | |
- .github/workflows/benchmarks.yml | |
- polylang/Cargo.lock | |
- polylang/benches/bench.rs | |
- miden/Cargo.lock | |
- miden/benches/bench.rs | |
- risc-zero/host/Cargo.toml | |
- risc-zero/host/benches/bench.rs | |
- noir/benches/bench.rs | |
- noir/Cargo.lock | |
jobs: | |
polylang: | |
runs-on: ubuntu-latest-64-cores | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run Polylang benchmarks | |
working-directory: ./polylang | |
env: | |
BENCHY_QUICK: "1" | |
run: | | |
cargo bench -F multi-cpu | |
miden: | |
runs-on: ubuntu-latest-64-cores | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run Miden benchmarks | |
working-directory: ./miden | |
env: | |
BENCHY_QUICK: "1" | |
run: | | |
cargo bench -F multi-cpu | |
risc_zero: | |
runs-on: ubuntu-latest-64-cores | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cache cargo bin | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/bin | |
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install risczero | |
run: cargo install cargo-risczero && cargo risczero install | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Risc-Zero benchmarks | |
working-directory: ./risc-zero/host | |
env: | |
BENCHY_QUICK: "1" | |
run: | | |
cargo bench multi-cpu | |
noir: | |
runs-on: ubuntu-latest-64-cores | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cache Nix packages | |
uses: actions/cache@v2 | |
with: | |
path: /nix/store | |
key: ${{ runner.os }}-nix-${{ hashFiles('**/shell.nix') }} | |
restore-keys: | | |
${{ runner.os }}-nix- | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libllvm14 | |
- name: Install Nix | |
run: | | |
sh <(curl -L https://nixos.org/nix/install) | |
source $HOME/.nix-profile/etc/profile.d/nix.sh | |
- name: Run cargo bench in Nix shell | |
working-directory: ./noir | |
env: | |
BENCHY_QUICK: "1" | |
run: | | |
source $HOME/.nix-profile/etc/profile.d/nix.sh | |
nix-shell --run "nix-shell -p clang --run 'cargo bench -q'" |