Skip to content

Commit fb0fc1d

Browse files
committed
CI: Pin cc for MSRV build
The `cc` dependency just stopped working for MSRV build with error error: package `cc v1.0.96` cannot be built because it requires rustc 1.63 or newer, while the currently active rustc version is 1.56.1 Pin `cc` back to an earlier version for MSRV build.
1 parent 60ad2c9 commit fb0fc1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ rustc --version
99

1010
# Cache the toolchain we are using.
1111
NIGHTLY=false
12+
MSRV=false
1213
if cargo --version | grep nightly; then
1314
NIGHTLY=true
15+
elif cargo --version | grep "1\.56"; then
16+
MSRV=true
17+
fi
18+
19+
if [ "$MSRV" = true ]; then
20+
cargo update -p cc --precise 1.0.79
1421
fi
1522

1623
# Format if told to

0 commit comments

Comments
 (0)