fix: clarify additive provider status #20
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| quality: | |
| name: Format, lint, and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install Rust 1.95 | |
| uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 | |
| with: | |
| toolchain: 1.95.0 | |
| components: rustfmt, clippy | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run Clippy | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run tests | |
| run: cargo test --all-features --locked | |
| native-release-build: | |
| name: Build ${{ matrix.target }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - runner: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| - runner: macos-latest | |
| target: x86_64-apple-darwin | |
| - runner: macos-latest | |
| target: aarch64-apple-darwin | |
| - runner: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install Rust 1.95 target | |
| uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 | |
| with: | |
| toolchain: 1.95.0 | |
| targets: ${{ matrix.target }} | |
| - name: Ensure target standard library is installed | |
| run: rustup target add ${{ matrix.target }} --toolchain 1.95.0 | |
| - name: Build release binary | |
| run: cargo build --locked --release --target ${{ matrix.target }} | |
| musl-static-smoke: | |
| name: Build and inspect x86_64 MUSL | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install Rust 1.95 | |
| uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 | |
| with: | |
| toolchain: 1.95.0 | |
| - name: Install cross 0.2.5 | |
| run: cargo install cross --version 0.2.5 --locked | |
| - name: Build MUSL release binary | |
| run: cross build --locked --release --target x86_64-unknown-linux-musl | |
| - name: Verify static linkage | |
| shell: bash | |
| run: | | |
| binary=target/x86_64-unknown-linux-musl/release/cc-switchy | |
| file "$binary" | |
| if readelf -d "$binary" | grep -q '(NEEDED)'; then | |
| echo 'MUSL binary unexpectedly has dynamic NEEDED entries' >&2 | |
| exit 1 | |
| fi | |
| - name: Execute MUSL binary | |
| run: target/x86_64-unknown-linux-musl/release/cc-switchy --version |