Feat/groth16 recursion bls12381 #2128
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: Cargo Build & Test | |
# We only run these lints on trial-merges of PRs to reduce noise. | |
on: | |
merge_group: | |
pull_request: | |
types: [synchronize, opened, reopened, ready_for_review] | |
push: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust toolchain 1.75 | |
run: rustup toolchain install 1.75.0-x86_64-unknown-linux-gnu | |
- name: Install nightly | |
run: rustup toolchain install nightly-2024-02-01-x86_64-unknown-linux-gnu | |
- name: Install std source | |
run: rustup component add rust-src --toolchain nightly-2024-02-01-x86_64-unknown-linux-gnu | |
- name: Install riscv target | |
run: rustup target add riscv32imac-unknown-none-elf --toolchain nightly-2024-02-01-x86_64-unknown-linux-gnu | |
- name: Install test dependencies | |
run: sudo apt-get update && sudo apt-get install -y binutils-riscv64-unknown-elf lld | |
- name: Run tests | |
run: cargo +nightly test --release --verbose | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- run: rustup component add rustfmt | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- run: rustup component add clippy | |
- run: cargo clippy --all-targets -- -D warnings |