init: isolated all the msm out of mopro-core and make it a crate #5
Workflow file for this run
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: Build and Test | |
on: | |
push: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
env: | |
CARGO_TERM_COLOR: always | |
SCCACHE_GHA_ENABLED: "false" | |
RUSTC_WRAPPER: "sccache" | |
jobs: | |
# TODO: Add a job to run clippy | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
gpu-benchmarks: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.77" | |
override: true | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Install circom | |
run: | | |
sudo wget -O ~/.cargo/bin/circom https://github.com/iden3/circom/releases/download/v2.1.9/circom-${{runner.os}}-amd64 | |
sudo chmod +x ~/.cargo/bin/circom | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install snarkjs | |
run: npm install -g snarkjs | |
- name: Prepare CI for Core and FFI | |
run: ./scripts/prepare_ci.sh | |
- name: Run GPU Benchmarks tests | |
run: | | |
cd mopro-msm | |
cargo test test_msm_correctness -- --nocapture |