r1cs improvement #390
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: Pull Reqeust Check | |
on: | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
format: | |
if: github.event.pull_request.draft == false | |
name: Code Format Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Update submodules | |
id: update | |
run: git submodule update -i | |
- uses: actions-rs/toolchain@v1 | |
- run: rustup component add rustfmt | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
bench: | |
if: contains(github.event.pull_request.labels.*.name, 'performance') | |
name: Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Update submodules | |
id: update | |
run: git submodule update -i | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: bench | |
clippy: | |
if: github.event.pull_request.draft == false | |
name: Clippy Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Update submodules | |
id: update | |
run: git submodule update -i | |
- uses: actions-rs/toolchain@v1 | |
- run: rustup component add clippy | |
- run: rustup target add wasm32-unknown-unknown | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --workspace --all-features | |
test: | |
if: github.event.pull_request.draft == false | |
name: Calculate Code Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Update submodules | |
id: update | |
run: git submodule update -i | |
- uses: actions-rs/toolchain@v1 | |
- run: rustup target add wasm32-unknown-unknown | |
- name: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.22.0' | |
args: '--release --all-features --workspace --no-fail-fast --engine Llvm --out Lcov' | |
out-type: 'Lcov' | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |