diff options
author | Sam Scott <sam@osohq.com> | 2024-04-07 15:23:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 15:23:28 -0500 |
commit | 2bb118fce16f2d5a1a85fce96d228acc23df827e (patch) | |
tree | 56ca89d79ba4d959f365004df5ab134adf79ac68 /.github/workflows/ci.yml | |
parent | c6e5914a31e0d602695a3ea601f6976a1ab07d0e (diff) |
Fix MSRV (#99)
* Remove `then_some` to stay compatible with earlier versions of Rust
* Fix CI builds to build on old versions of Rust
* Trying 1.61
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 373269f..9034936 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,15 +10,13 @@ jobs: matrix: rust: - stable - - 1.36.0 + - 1.61.0 steps: - uses: actions/checkout@v2 - name: Install Rust stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - override: true components: rustfmt, clippy - name: Check Rust formatting uses: actions-rs/cargo@v1 @@ -38,13 +36,22 @@ jobs: matrix: rust: - stable - - 1.36.0 + - 1.61.0 feature: - "" - actix4 - actix3 - warp - axum + exclude: + - rust: 1.61.0 + feature: actix4 + - rust: 1.61.0 + feature: actix3 + - rust: 1.61.0 + feature: warp + - rust: 1.61.0 + feature: axum steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 @@ -55,10 +62,9 @@ jobs: target key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.toml') }} - name: Install Rust stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal - toolchain: stable + toolchain: ${{ matrix.rust }} - name: Run test ${{ matrix.feature }} run: | cargo test --all-targets --features "${{ matrix.feature }}" |