chore(release): anvil-ssh 0.4.0 (#13) #29
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: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install perl (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y perl | |
| - name: Install nasm (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: choco install nasm -y --no-progress | |
| shell: pwsh | |
| - name: Install nasm (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install nasm | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build | |
| run: cargo build --release | |
| - name: Test | |
| run: cargo test | |
| lint: | |
| name: Lint (rustfmt + clippy) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get update && sudo apt-get install -y perl | |
| # Install on the EXACT toolchain rust-toolchain.toml pins (1.88.0). | |
| # `@stable` would install rustfmt/clippy on the latest stable instead, | |
| # but `cargo` ends up calling the pinned 1.88.0 toolchain that lacks | |
| # those components, producing `'cargo-fmt' is not installed for the | |
| # toolchain '1.88.0-x86_64-unknown-linux-gnu'`. | |
| - uses: dtolnay/rust-toolchain@1.88.0 | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo fmt --check | |
| - run: cargo clippy --all-targets -- -D warnings | |
| msrv: | |
| name: MSRV (1.88) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get update && sudo apt-get install -y perl | |
| - uses: dtolnay/rust-toolchain@1.88.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo build --release |