build(deps): update nom requirement from 7 to 8 #351
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: Rust | |
| on: [push, pull_request] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| # Pinned toolchain for linting | |
| ACTION_LINTS_TOOLCHAIN: '1.69.0' | |
| jobs: | |
| tests-stable: | |
| name: "Tests, stable toolchain" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo build | |
| - run: cargo test | |
| - run: cargo build --release | |
| tests-minimum-toolchain: | |
| name: "Tests, minimum supported toolchain (MSRV)" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Extract MSRV | |
| run: echo "ACTION_MSRV_TOOLCHAIN=$(grep 'rust-version' Cargo.toml | cut -d '"' -f2)" >> $GITHUB_ENV | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env['ACTION_MSRV_TOOLCHAIN'] }} | |
| - run: cargo build --release | |
| - run: cargo test --release | |
| linting: | |
| name: "Lints, pinned toolchain" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env['ACTION_LINTS_TOOLCHAIN'] }} | |
| components: rustfmt,clippy | |
| - run: cargo clippy -- -D warnings | |
| - run: cargo fmt -- --check -l | |
| tests-other-channels: | |
| name: "Tests, unstable toolchain" | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| channel: | |
| - "beta" | |
| - "nightly" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.channel }} | |
| - run: cargo build | |
| - run: cargo test |