2026-07-29 10:03:01 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2026-07-29 10:29:11 +00:00
|
|
|
branches: [master]
|
2026-07-29 10:03:01 +00:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
ci:
|
|
|
|
|
runs-on: docker
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Cache cargo
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
with:
|
|
|
|
|
path: |
|
|
|
|
|
~/.cargo/registry
|
|
|
|
|
~/.cargo/bin
|
|
|
|
|
target
|
|
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.os }}-cargo-
|
|
|
|
|
|
2026-07-29 10:25:09 +00:00
|
|
|
- name: Install Rust toolchain
|
|
|
|
|
run: |
|
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --component clippy --component rustfmt
|
|
|
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
2026-07-29 10:03:01 +00:00
|
|
|
|
|
|
|
|
- name: Install cargo-make and cargo-audit
|
|
|
|
|
run: |
|
|
|
|
|
for crate in cargo-make cargo-audit; do
|
|
|
|
|
command -v "$crate" >/dev/null 2>&1 || cargo install "$crate"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
- name: Run CI checks
|
|
|
|
|
run: cargo make ci
|