From 25e43265aee1300bce7329d859c24248d6f837ef Mon Sep 17 00:00:00 2001 From: Tatsuya Kawano Date: Tue, 24 Jan 2023 22:49:55 +0800 Subject: [PATCH] Fix the CI for Rust nightly with minimal dependency versions When testing minimal dependency versions, upgrade `openssl` to v0.10.39, otherwise building `openssl-sys` will fail on Linux. --- .cirrus.yml | 1 + .github/workflows/CI.yml | 5 +++++ .github/workflows/CIQuantaDisabled.yml | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 7ae522ad..e28191f8 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -40,6 +40,7 @@ linux_arm64_task: if [ -z "$RUST_VERSION" ]; then echo 'Downgrading dependencies to minimal versions' cargo update -Z minimal-versions + cargo update -p openssl --precise 0.10.39 else echo 'Skipped' fi diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fdb59d4c..538763e5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -59,6 +59,11 @@ jobs: command: update args: -Z minimal-versions + - name: Pin some dependencies to specific versions (Nightly only) + if: ${{ matrix.rust == 'nightly' }} + run: | + cargo update -p openssl --precise 0.10.39 + - name: Pin some dependencies to specific versions (MSRV only) if: ${{ matrix.rust == '1.51.0' }} # hashbrown >= v0.12 requires Rust 2021 edition. diff --git a/.github/workflows/CIQuantaDisabled.yml b/.github/workflows/CIQuantaDisabled.yml index 7c4a70e9..39129a3b 100644 --- a/.github/workflows/CIQuantaDisabled.yml +++ b/.github/workflows/CIQuantaDisabled.yml @@ -52,6 +52,11 @@ jobs: command: update args: -Z minimal-versions + - name: Pin some dependencies to specific versions (Nightly only) + if: ${{ matrix.rust == 'nightly' }} + run: | + cargo update -p openssl --precise 0.10.39 + - name: Pin some dependencies to specific versions (MSRV only) if: ${{ matrix.rust == '1.51.0' }} # hashbrown >= v0.12 requires Rust 2021 edition.