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:
71a7f0e748 2026-04-23 6:
ec55d3e69e 2026-10-28 7: permissions:
ec55d3e69e 2026-10-28 8: contents: read
ec55d3e69e 2026-10-28 9:
7551b4dc28 2026-01-12 10: # sccache enable for rust/C builds
4448c56dd2 2026-01-12 11: env:
4448c56dd2 2026-01-12 12: SCCACHE_GHA_ENABLED: "true"
4448c56dd2 2026-01-12 13: RUSTC_WRAPPER: "sccache"
c4797b7b7c 2024-08-11 14:
c4797b7b7c 2024-08-11 15: jobs:
2fc1e49ea5 2026-01-12 16: rust-ci-run:
2fc1e49ea5 2026-01-12 17: name: Run rust-clippy analyzing and tests
b54bc87df8 2026-01-02 18: runs-on: ubuntu-latest
71a7f0e748 2026-04-23 19: if: github.event_name == 'push' || (github.head_ref != 'master' && github.head_ref != 'release')
b54bc87df8 2026-01-02 20: steps:
2fc1e49ea5 2026-01-12 21: # SETUP
c9ff34669d 2026-07-31 22: - uses: actions/checkout@v7
c9ff34669d 2026-07-31 23: with:
c9ff34669d 2026-07-31 24: persist-credentials: false
2fc1e49ea5 2026-01-12 25: - uses: dtolnay/rust-toolchain@stable
2fc1e49ea5 2026-01-12 26: - uses: Swatinem/rust-cache@v2
cb1fdeff6f 2026-09-10 27: - uses: mozilla-actions/sccache-action@v0.0.11
2fc1e49ea5 2026-01-12 28:
2fc1e49ea5 2026-01-12 29: # TESTS
b54bc87df8 2026-01-02 30: - name: Run tests
4448c56dd2 2026-01-12 31: run: cargo test --all-targets --all-features
b54bc87df8 2026-01-02 32:
2fc1e49ea5 2026-01-12 33: # CLIPPY
b54bc87df8 2026-01-02 34: - name: Run rust-clippy
2fc1e49ea5 2026-01-12 35: run: cargo clippy --all-targets --all-features -- -D warnings