name: Rust on: push: branches: [ "*" ] pull_request: branches: [ "*" ] env: CARGO_TERM_COLOR: always jobs: build: name: Compile, Test, Lint runs-on: ubuntu-latest permissions: contents: read actions: write checks: write steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install latest stable Rust toolchain uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - name: Cache cargo registry & build artifacts uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- - name: Compile (no tests) run: cargo check --workspace --all-features --lib --bins --verbose - name: Run tests (single pass) run: cargo test --workspace --all-features --verbose # clippy dont fail on warnings because of active development of telemt # and many warnings - name: Run clippy run: cargo clippy -- --cap-lints warn - name: Check for unused dependencies run: cargo udeps || true