release: v0.1.16 #371
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| quality: | |
| name: Rust quality gates (${{ matrix.os }}) | |
| # Both supported platforms gate every PR. A macOS-only run cannot see the | |
| # places where this code asks the operating system a question — clipboards, | |
| # state directories, sound players — and those are exactly the places where | |
| # a change compiles everywhere and works in one place. | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install stable Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Lint | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Test | |
| run: cargo test --all-features | |
| - name: Compile all targets | |
| run: cargo check --all-targets --all-features |