ci: Use clang-snapshot in "MSan" job
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -417,6 +417,9 @@ jobs:
|
|||||||
# when ctime_tests when enabled.
|
# when ctime_tests when enabled.
|
||||||
CFLAGS: '-fsanitize=memory -fsanitize-recover=memory -fsanitize-memory-param-retval -g'
|
CFLAGS: '-fsanitize=memory -fsanitize-recover=memory -fsanitize-memory-param-retval -g'
|
||||||
CTIMETESTS: 'no'
|
CTIMETESTS: 'no'
|
||||||
|
cc:
|
||||||
|
- 'clang'
|
||||||
|
- 'clang-snapshot'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ECDH: 'yes'
|
ECDH: 'yes'
|
||||||
@@ -425,7 +428,7 @@ jobs:
|
|||||||
SCHNORRSIG: 'yes'
|
SCHNORRSIG: 'yes'
|
||||||
MUSIG: 'yes'
|
MUSIG: 'yes'
|
||||||
ELLSWIFT: 'yes'
|
ELLSWIFT: 'yes'
|
||||||
CC: 'clang'
|
CC: ${{ matrix.cc }}
|
||||||
SECP256K1_TEST_ITERS: 32
|
SECP256K1_TEST_ITERS: 32
|
||||||
ASM: 'no'
|
ASM: 'no'
|
||||||
WITH_VALGRIND: 'no'
|
WITH_VALGRIND: 'no'
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ RUN \
|
|||||||
# Determine the version number of the LLVM development branch
|
# Determine the version number of the LLVM development branch
|
||||||
LLVM_VERSION=$(apt-cache search --names-only '^clang-[0-9]+$' | sort -V | tail -1 | cut -f1 -d" " | cut -f2 -d"-" ) && \
|
LLVM_VERSION=$(apt-cache search --names-only '^clang-[0-9]+$' | sort -V | tail -1 | cut -f1 -d" " | cut -f2 -d"-" ) && \
|
||||||
# Install
|
# Install
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y "clang-${LLVM_VERSION}" && \
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y "clang-${LLVM_VERSION}" "libclang-rt-${LLVM_VERSION}-dev" && \
|
||||||
# Create symlink
|
# Create symlink
|
||||||
ln -s "/usr/bin/clang-${LLVM_VERSION}" /usr/bin/clang-snapshot && \
|
ln -s "/usr/bin/clang-${LLVM_VERSION}" /usr/bin/clang-snapshot && \
|
||||||
# Clean up
|
# Clean up
|
||||||
|
|||||||
Reference in New Issue
Block a user