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

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#142) #248

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#142)

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#142) #248

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
RUSTFLAGS: "-C overflow-checks=on"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Outdated Builds
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust 1.64 toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.64
components: clippy, rustfmt
- name: Enable Rust Caching
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Format Check
run: cargo fmt -- --check
- name: Clippy
run: |
cargo clippy -- -D warnings
- name: Audit
run: cargo audit --ignore RUSTSEC-2022-0013
- name: Check Bench
run: cargo bench --no-run
- name: Check Ignored Tests
run: cargo test --release --no-run -- --ignored
- name: Test
run: |
cargo test --release --no-default-features --features bn254 -- -Zunstable-options --report-time
- name: Generate Documentation
run: |
cargo doc --no-deps --lib --release
cp -R target/doc public
echo '<meta http-equiv="refresh" content="0; url=jf_cap">' > public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: cap.docs.espressosys.com