ci: add tag-driven release workflow #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| # rustfmt + clippy pinned to MSRV (1.80) so a newer toolchain's lint changes | |
| # don't break the build. Clippy warnings are denied so CI fails on any new lint. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| fmt: | |
| name: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust (MSRV) | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.80" | |
| components: rustfmt | |
| - name: cargo fmt --check | |
| run: cargo fmt --all -- --check | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust (MSRV) | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.80" | |
| components: clippy | |
| - name: Cache cargo registry and target | |
| uses: Swatinem/rust-cache@v2 | |
| - name: cargo clippy | |
| run: cargo clippy --workspace --all-features -- -D warnings |