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.
This commit is contained in:
parent
5e6dd8a467
commit
92778efe92
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -ex
|
||||
|
||||
REPO_DIR=$(git rev-parse --show-toplevel)
|
||||
FEATURES="bitcoin-hashes global-context lowmemory rand recovery serde std alloc bitcoin-hashes-std rand-std"
|
||||
|
||||
cargo --version
|
||||
|
@ -108,6 +109,12 @@ if [ "$DO_ASAN" = true ]; then
|
|||
CC='clang -fsanitize=memory -fno-omit-frame-pointer' \
|
||||
RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes -Cllvm-args=-msan-eager-checks=0' \
|
||||
cargo test --lib --all --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
|
||||
|
||||
pushd "$REPO_DIR/no_std_test" > /dev/null || exit 1
|
||||
# See https://github.com/rust-bitcoin/rust-secp256k1/pull/641#issuecomment-1671598914
|
||||
cargo update -p cc --precise 1.0.79
|
||||
popd > /dev/null || exit 1
|
||||
|
||||
cargo run --release --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified Successfully"
|
||||
cargo run --release --features=alloc --manifest-path=./no_std_test/Cargo.toml | grep -q "Verified alloc Successfully"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue