This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
Enable specifying prover circuit sizes in .env and CLI #60
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Remove Pre-installed Rust | |
run: | | |
rustup toolchain remove stable | |
rm -f /home/runner/.cargo/bin/rust-analyzer | |
rm -f /home/runner/.cargo/bin/rustfmt | |
rm -f /home/runner/.cargo/bin/cargo-fmt | |
- name: Install Rust Nightly | |
run: | | |
rustup install nightly | |
rustup default nightly | |
- name: Add Rust Components | |
run: | | |
rustup component add rustfmt --toolchain nightly | |
rustup component add clippy --toolchain nightly | |
- name: Get Rust Version | |
run: echo "RUST_VERSION=$(rustc --version)" >> $GITHUB_ENV | |
- name: Cache Cargo Registry and Build Outputs | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-rust-${{ env.RUST_VERSION }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings | |
- name: Run cargo fmt --check | |
run: cargo fmt --all -- --check | |
- name: Run cargo test | |
run: cargo test |