Undo manual version bump #246
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: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| permissions: {} | |
| jobs: | |
| ci: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| fail-fast: false | |
| name: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 | |
| - name: "Install latest stable Rust" | |
| run: rustup update | |
| - run: cargo fmt --all -- --check | |
| - name: cargo hack | |
| run: | | |
| uv run --dev cargo hack check --all --ignore-private --each-feature --no-dev-deps | |
| - name: cargo shear | |
| run: | | |
| uv run --dev cargo shear | |
| - run: cargo check --all --all-targets --all-features | |
| - run: cargo test | |
| # Test without zerocopy | |
| - run: cargo test --no-default-features | |
| - run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings | |
| msrv: | |
| name: msrv | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 | |
| - uses: SebRollen/toml-action@b1b3628f55fc3a28208d4203ada8b737e9687876 # v1.2.0 | |
| id: msrv | |
| with: | |
| file: "Cargo.toml" | |
| field: "package.rust-version" | |
| - name: "Install Rust toolchain" | |
| run: rustup default ${MSRV} | |
| env: | |
| MSRV: ${{ steps.msrv.outputs.value }} | |
| - run: cargo +${MSRV} test | |
| env: | |
| MSRV: ${{ steps.msrv.outputs.value }} |