Repository navigation
ci: replace NLnet Labs workflow with local checks #2
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 | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}, Rust ${{ matrix.rust }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| rust: ["1.80.0", stable, beta, nightly] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: Build with default features | |
| run: cargo build --verbose --all | |
| - name: Build with all features | |
| run: cargo build --verbose --all --all-features | |
| - name: Test with default features | |
| run: cargo test --verbose --all | |
| - name: Test with all features | |
| run: cargo test --verbose --all --all-features | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: cargo clippy --all --all-features -- -D warnings | |
| minimal-versions: | |
| name: Minimal dependencies (${{ matrix.os }}, Rust ${{ matrix.rust }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| rust: ["1.80.0", stable] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: Resolve minimal dependency versions | |
| run: cargo +nightly update -Z minimal-versions | |
| - name: Build with minimal dependency versions | |
| run: cargo build --verbose --all --all-features | |
| - name: Test with minimal dependency versions | |
| run: cargo test --verbose --all --all-features |