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