name: Build on: push: branches: - main pull_request: branches: - main schedule: - cron: '0 0 * * 1' workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Cancel Outdated Builds uses: styfle/cancel-workflow-action@0.11.0 with: all_but_latest: true access_token: ${{ github.token }} - name: Checkout Repository uses: actions/checkout@v3 - uses: Swatinem/rust-cache@v2 name: Enable Rust Caching - name: Format Check run: cargo fmt -- --check - name: Clippy Check run: cargo clippy --workspace -- -D warnings - name: Audit Check run: cargo audit - name: Check Bench run: cargo bench --no-run - name: Check Ignored Tests run: cargo test --no-run -- --ignored - name: Test run: bash ./scripts/run_tests.sh - name: Generate Documentation run: | cargo doc --no-deps --lib --release cp -R target/doc public echo '<meta http-equiv="refresh" content="0; url=jf_plonk">' > 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: hyperplonk.docs.espressosys.com
name: Build
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Outdated Builds
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Checkout Repository
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
- name: Format Check
run: cargo fmt -- --check
- name: Clippy Check
run: cargo clippy --workspace -- -D warnings
- name: Audit Check
run: cargo audit
- name: Check Bench
run: cargo bench --no-run
- name: Check Ignored Tests
run: cargo test --no-run -- --ignored
- name: Test
run: bash ./scripts/run_tests.sh
- name: Generate Documentation
run: |
cargo doc --no-deps --lib --release
cp -R target/doc public
echo '<meta http-equiv="refresh" content="0; url=jf_plonk">' > public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: hyperplonk.docs.espressosys.com