perf: make repository monitoring non-interfering #17
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pinned: | |
| name: Rust 1.88 / ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: [macos-15, macos-15-intel] | |
| runs-on: ${{ matrix.runner }} | |
| env: | |
| RUST_VERSION: 1.88.0 | |
| MACOSX_DEPLOYMENT_TARGET: "15.0" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Runner identity | |
| run: sw_vers && uname -m && rustc --version --verbose && cargo --version | |
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: cargo-${{ runner.os }}-${{ runner.arch }}-${{ env.RUST_VERSION }}-${{ hashFiles('Cargo.lock') }} | |
| - run: cargo fetch --locked | |
| - run: cargo fmt --all -- --check | |
| - run: cargo clippy --locked --all-targets --all-features -- -D warnings | |
| - run: cargo test --locked --all-targets --all-features | |
| - run: cargo build --release --locked | |
| - run: scripts/check-package-contents.sh | |
| stable: | |
| name: Current stable compatibility | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - run: rustup toolchain install stable --profile minimal | |
| - run: cargo +stable check --locked --all-targets --all-features |