2fc1e49ea5 2026-01-12 1: name: rust-ci
71a7f0e748 2026-04-23 2: on:
71a7f0e748 2026-04-23 3: push:
71a7f0e748 2026-04-23 4: branches: [ master, release ]
71a7f0e748 2026-04-23 5: pull_request:
4448c56dd2 2026-01-12 6:
7551b4dc28 2026-01-12 7: # sccache enable for rust/C builds
4448c56dd2 2026-01-12 8: env:
4448c56dd2 2026-01-12 9: SCCACHE_GHA_ENABLED: "true"
4448c56dd2 2026-01-12 10: RUSTC_WRAPPER: "sccache"
c4797b7b7c 2024-08-11 11:
c4797b7b7c 2024-08-11 12: jobs:
2fc1e49ea5 2026-01-12 13: rust-ci-run:
2fc1e49ea5 2026-01-12 14: name: Run rust-clippy analyzing and tests
2283656bf6 2024-08-11 15: runs-on: ubuntu-latest
71a7f0e748 2026-04-23 16: if: github.event_name == 'push' || (github.head_ref != 'master' && github.head_ref != 'release')
2283656bf6 2024-08-11 17: permissions:
2283656bf6 2024-08-11 18: contents: read
2fc1e49ea5 2026-01-12 19: steps:
2fc1e49ea5 2026-01-12 20: # SETUP
2fc1e49ea5 2026-01-12 21: - uses: actions/checkout@v6
2fc1e49ea5 2026-01-12 22: - uses: dtolnay/rust-toolchain@stable
2fc1e49ea5 2026-01-12 23: - uses: Swatinem/rust-cache@v2
1079228c37 2026-04-23 24: - uses: mozilla-actions/sccache-action@v0.0.10
2fc1e49ea5 2026-01-12 25:
2fc1e49ea5 2026-01-12 26: # TESTS
b54bc87df8 2026-01-02 27: - name: Run tests
4448c56dd2 2026-01-12 28: run: cargo test --all-targets --all-features
b54bc87df8 2026-01-02 29:
2fc1e49ea5 2026-01-12 30: # CLIPPY
b54bc87df8 2026-01-02 31: - name: Run rust-clippy
2fc1e49ea5 2026-01-12 32: run: cargo clippy --all-targets --all-features -- -D warnings