2fc1e49ea5 2026-01-12 1: name: rust-ci
8e37b3f028 2026-01-18 2: on: [ pull_request ]
4448c56dd2 2026-01-12 3:
7551b4dc28 2026-01-12 4: # sccache enable for rust/C builds
4448c56dd2 2026-01-12 5: env:
4448c56dd2 2026-01-12 6: SCCACHE_GHA_ENABLED: "true"
4448c56dd2 2026-01-12 7: RUSTC_WRAPPER: "sccache"
8:
9: jobs:
2fc1e49ea5 2026-01-12 10: rust-ci-run:
2fc1e49ea5 2026-01-12 11: name: Run rust-clippy analyzing and tests
12: runs-on: ubuntu-latest
13: permissions:
14: contents: read
2fc1e49ea5 2026-01-12 15: steps:
2fc1e49ea5 2026-01-12 16: # SETUP
2fc1e49ea5 2026-01-12 17: - uses: actions/checkout@v6
2fc1e49ea5 2026-01-12 18: - uses: dtolnay/rust-toolchain@stable
2fc1e49ea5 2026-01-12 19: - uses: Swatinem/rust-cache@v2
4448c56dd2 2026-01-12 20: - uses: mozilla-actions/sccache-action@v0.0.9
2fc1e49ea5 2026-01-12 21:
2fc1e49ea5 2026-01-12 22: # TESTS
b54bc87df8 2026-01-02 23: - name: Run tests
4448c56dd2 2026-01-12 24: run: cargo test --all-targets --all-features
b54bc87df8 2026-01-02 25:
2fc1e49ea5 2026-01-12 26: # CLIPPY
b54bc87df8 2026-01-02 27: - name: Run rust-clippy
2fc1e49ea5 2026-01-12 28: run: cargo clippy --all-targets --all-features -- -D warnings