Skip to content

housekeeping

housekeeping #83

Workflow file for this run

name: gate
on:
push:
branches:
- main
pull_request:
jobs:
check-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: check style
uses: actions-rust-lang/rustfmt@v1
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: lint
run: cargo clippy
run-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: run unit tests
run: cargo test
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: restore cache
uses: actions/cache/restore@v4
with:
path: target/criterion
- name: benchmark
run: cargo bench -- --noplot
- name: save cache
if: github.head_ref == 'refs/heads/main'
uses: actions/cache/save@v4
with:
path: target/criterion