name: Build
on: push
env:
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: build-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: taiki-e/install-action@just
- name: Build
run: just build
- name: Test
run: xvfb-run --auto-servernum just test
- name: Format
run: just fmt-check
- name: Clippy
run: just clippy
- name: Audit
run: |
cargo install cargo-audit
just audit