Skip to content

Commit 4fb4de3

Browse files
committed
ci: pin cc for MSRV
1 parent 9857edd commit 4fb4de3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ jobs:
107107
toolchain: ${{ matrix.rust }}
108108
override: true
109109
- name: Running cargo in release mode
110-
run: cargo test --features="global-context" --release
110+
run: cargo update -p cc --precise 1.0.94 && cargo test --features="global-context" --release

contrib/test.sh

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ rustc --version
88
# Make all cargo invocations verbose
99
export CARGO_TERM_VERBOSE=true
1010

11+
# Pin dependencies as required if we are using MSRV toolchain.
12+
if cargo --version | grep "1\.56"; then
13+
cargo update -p cc --precise 1.0.94
14+
fi
15+
1116
# Defaults / sanity checks
1217
cargo build --all
1318
cargo test --all

0 commit comments

Comments
 (0)