ci: use GHA default clang for asan, tsan jobs #20846

Default is currently clang 14. GHA images are updated at least once per year, so
we don't need to manually install a newer clang version.

Also remove step for installing clang-13 since it's not needed anymore.
This commit is contained in:
dundargoc 2022-10-29 21:11:56 +02:00 committed by GitHub
parent 1d625a3cf7
commit 49fbcb5b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View File

@ -208,11 +208,11 @@ jobs:
matrix:
include:
- flavor: asan
cc: clang-13
cc: clang
runner: ubuntu-22.04
os: linux
- flavor: tsan
cc: clang-13
cc: clang
runner: ubuntu-22.04
os: linux
- flavor: uchar
@ -269,14 +269,6 @@ jobs:
exit 1
}
- name: Install new clang
if: matrix.flavor == 'asan' || matrix.flavor == 'tsan'
run: |
wget https://apt.llvm.org/llvm.sh
chmod a+x llvm.sh
sudo ./llvm.sh 13
rm llvm.sh
- name: Install brew packages
if: matrix.os == 'osx'
run: |

View File

@ -30,7 +30,7 @@ case "$FLAVOR" in
BUILD_FLAGS="$BUILD_FLAGS -DPREFER_LUA=ON"
cat <<EOF >> "$GITHUB_ENV"
CLANG_SANITIZER=ASAN_UBSAN
SYMBOLIZER=asan_symbolize-13
SYMBOLIZER=asan_symbolize
ASAN_OPTIONS=detect_leaks=1:check_initialization_order=1:log_path=$GITHUB_WORKSPACE/build/log/asan:intercept_tls_get_addr=0
UBSAN_OPTIONS=print_stacktrace=1 log_path=$GITHUB_WORKSPACE/build/log/ubsan
EOF