From 595019e979ebed5452b550bf901abcab2cf4e945 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 6 Jul 2024 13:25:54 -0700 Subject: [PATCH] Cut test_suite from workspace members in old toolchain CI jobs The test suite's dependencies cannot be resolved by an old toolchain. error: failed to select a version for the requirement `toml = "^0.8"` candidate versions found which didn't match: 0.5.11, 0.5.10, 0.5.9, ... location searched: crates.io index required by package `trybuild v1.0.97` ... which satisfies dependency `trybuild = "^1.0.97"` of package `serde_test_suite v0.0.0` --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8487ba65d..8c32b678b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,6 +84,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{matrix.rust}} + - run: sed -i '/"test_suite"/d' Cargo.toml - run: cd serde && cargo build --features rc - run: cd serde && cargo build --no-default-features - run: cd serde && cargo build @@ -95,6 +96,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@1.56.0 + - run: sed -i '/"test_suite"/d' Cargo.toml - run: cd serde && cargo check --no-default-features - run: cd serde && cargo check - run: cd serde_derive && cargo check @@ -106,6 +108,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@1.36.0 + - run: sed -i '/"test_suite"/d' Cargo.toml - run: cd serde && cargo build --no-default-features --features alloc minimal: