Skip to content

Commit

Permalink
CI: Pin cc for MSRV build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tcharding committed Apr 30, 2024
1 parent 60ad2c9 commit fb0fc1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ rustc --version

# Cache the toolchain we are using.
NIGHTLY=false
MSRV=false
if cargo --version | grep nightly; then
NIGHTLY=true
elif cargo --version | grep "1\.56"; then
MSRV=true
fi

if [ "$MSRV" = true ]; then
cargo update -p cc --precise 1.0.79
fi

# Format if told to
Expand Down

0 comments on commit fb0fc1d

Please sign in to comment.