1: name: rust-ci
7551b4dc28 2026-01-12 2: on: [ push, pull_request]
7551b4dc28 2026-01-12 3:
7551b4dc28 2026-01-12 4: # only run one job per commit
7551b4dc28 2026-01-12 5: concurrency:
7551b4dc28 2026-01-12 6: group: ${{ github.workflow }}-${{ github.ref }}
7551b4dc28 2026-01-12 7: cancel-in-progress: true
8:
9: # sccache enable for rust/C builds
10: env:
11: SCCACHE_GHA_ENABLED: "true"
12: RUSTC_WRAPPER: "sccache"
13:
14: jobs:
15: rust-ci-run:
16: name: Run rust-clippy analyzing and tests
17: runs-on: ubuntu-latest
18: permissions:
19: contents: read
20: steps:
21: # SETUP
22: - uses: actions/checkout@v6
23: - uses: dtolnay/rust-toolchain@stable
24: - uses: Swatinem/rust-cache@v2
25: - uses: mozilla-actions/sccache-action@v0.0.9
26:
27: # TESTS
28: - name: Run tests
29: run: cargo test --all-targets --all-features
30:
31: # CLIPPY
32: - name: Run rust-clippy
33: run: cargo clippy --all-targets --all-features -- -D warnings