Skip to content

Commit e418ee9

Browse files
committed
CI: Pin cc in ASAN no_std_test crate
Looks like a recent version of `cc` breaks our ASAN job. Pin to the previous version.
1 parent cf5f103 commit e418ee9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/test.sh

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -ex
44

5+
REPO_DIR=$(git rev-parse --show-toplevel)
56
FEATURES="bitcoin-hashes global-context lowmemory rand recovery serde std alloc bitcoin-hashes-std rand-std"
67

78
cargo --version
@@ -108,6 +109,12 @@ if [ "$DO_ASAN" = true ]; then
108109
CC='clang -fsanitize=memory -fno-omit-frame-pointer' \
109110
RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes -Cllvm-args=-msan-eager-checks=0' \
110111
cargo test --lib --all --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
112+
113+
pushd "$REPO_DIR/no_std_test" > /dev/null | exit 1
114+
# See https://github.com/rust-bitcoin/rust-secp256k1/pull/641#issuecomment-1671598914
115+
cargo update -p cc --precise 1.0.79
116+
popd > /dev/null || exit 1
117+
111118
cargo run --release --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified Successfully"
112119
cargo run --release --features=alloc --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified alloc Successfully"
113120
fi

0 commit comments

Comments
 (0)