1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-03-04 06:02:46 +01:00

ci: fix msrv by downgrading native-tls

This commit is contained in:
Rob Ede 2025-02-23 18:49:47 +00:00
parent 3f7a479a76
commit bb0c7f21d9
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 19 additions and 12 deletions

View File

@ -48,15 +48,14 @@ jobs:
with:
toolchain: ${{ matrix.version.version }}
- name: Install cargo-hack and cargo-ci-cache-clean
- name: Install cargo-hack and cargo-ci-cache-clean, just
uses: taiki-e/install-action@v2.47.32
with:
tool: cargo-hack,cargo-ci-cache-clean
tool: cargo-hack,cargo-ci-cache-clean,just
# - name: workaround MSRV issues
# if: matrix.version.name == 'msrv'
# run: |
# cargo update -p=time:0.3.20 --precise=0.3.16
- name: workaround MSRV issues
if: matrix.version.name == 'msrv'
run: just downgrade-for-msrv
- name: check minimal
run: cargo ci-min
@ -106,15 +105,14 @@ jobs:
with:
toolchain: ${{ matrix.version.version }}
- name: Install cargo-hack, cargo-ci-cache-clean
- name: Install cargo-hack, cargo-ci-cache-clean, just
uses: taiki-e/install-action@v2.47.32
with:
tool: cargo-hack,cargo-ci-cache-clean
tool: cargo-hack,cargo-ci-cache-clean,just
# - name: workaround MSRV issues
# if: matrix.version.name == 'msrv'
# run: |
# cargo update -p=time:0.3.20 --precise=0.3.16
- name: workaround MSRV issues
if: matrix.version.name == 'msrv'
run: just downgrade-for-msrv
- name: check minimal
run: cargo ci-min

View File

@ -45,6 +45,15 @@ test:
cargo {{ toolchain }} nextest run --workspace --all-features
cargo {{ toolchain }} test --doc --workspace --all-features
# Downgrade dev-dependencies necessary to run MSRV checks/tests.
[private]
downgrade-for-msrv:
cargo update -p=native-tls --precise=0.2.13
# Test workspace using MSRV.
[group("test")]
test-msrv: downgrade-for-msrv (test msrv_rustup)
# Test workspace code and docs.
[group("test")]
test-all: test test-docs