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