diff --git a/.github/workflows/ci_linux.yaml b/.github/workflows/ci_linux.yaml index 1c54d235..116de865 100644 --- a/.github/workflows/ci_linux.yaml +++ b/.github/workflows/ci_linux.yaml @@ -28,19 +28,27 @@ jobs: - name: Setup rust run: rustup default ${{ matrix.rust-version }} + # As new versions of our dependencies come out, they might depend on newer + # versions of the Rust compiler. When that happens, we'll use this step to + # lock down the dependency to a version that is known to be compatible with + # compiler version 1.75. + - name: Patch dependencies + if: ${{ matrix.rust-version == 1.75 }} + run: ./scripts/patch-versions-msrv-1_75.sh + - name: Build default features - run: cargo build --workspace --ignore-rust-version + run: cargo build --workspace - name: Test default features - run: cargo test --workspace --ignore-rust-version + run: cargo test --workspace - name: Test diagram - run: cargo test --workspace -F=diagram --ignore-rust-version + run: cargo test --workspace -F=diagram - name: Build single_threaded_async - run: cargo build --features single_threaded_async --ignore-rust-version + run: cargo build --features single_threaded_async - name: Test single_threaded_async - run: cargo test --features single_threaded_async --ignore-rust-version + run: cargo test --features single_threaded_async - name: Build docs - run: cargo doc --ignore-rust-version + run: cargo doc diff --git a/scripts/patch-versions-msrv-1_75.sh b/scripts/patch-versions-msrv-1_75.sh new file mode 100755 index 00000000..292036de --- /dev/null +++ b/scripts/patch-versions-msrv-1_75.sh @@ -0,0 +1,4 @@ +# This script is useful for forcing dependencies to be compatible with Rust v1.75 +# Run this script in the root directory of the package. + +cargo add home@=0.5.9