Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
fix: acvm_js check'n'test
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx committed Aug 1, 2023
1 parent 973c6bb commit eff49d9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,37 @@ name: Rust
on: [push, pull_request]

jobs:
barretenberg-job:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/cachix-action@v12
with:
name: barretenberg

# barretenberg#wasm32 is needed by acvm_js crate so we need to build it first
# and ensure it's in $workspace_root/acvm_js/result/bin
# so acvm_js build.rs script can pick it up
- name: Run `nix build bb`
working-directory: ./acvm_js
run: |
nix build -L "github:AztecProtocol/barretenberg?rev=65e651d04c6092cb5ca079cd9e12ed9b5846fa3a#wasm32"
check_n_test:
needs: barretenberg-job
name: cargo check & test
uses: noir-lang/.github/.github/workflows/rust-test.yml@main

clippy:
needs: barretenberg-job
name: cargo clippy
uses: noir-lang/.github/.github/workflows/rust-clippy.yml@main

format:
needs: barretenberg-job
name: cargo fmt
uses: noir-lang/.github/.github/workflows/rust-format.yml@main

0 comments on commit eff49d9

Please sign in to comment.