Merge branch 'jk/ci-use-clang-for-sanitizer-jobs'

Clang's sanitizer implementation seems to work better than GCC's.

* jk/ci-use-clang-for-sanitizer-jobs:
  ci: drop linux-clang job
  ci: run ASan/UBSan in a single job
  ci: use clang for ASan/UBSan checks
maint
Junio C Hamano 2023-06-20 15:53:11 -07:00
commit 056d16406d
2 changed files with 4 additions and 13 deletions

View File

@ -246,9 +246,6 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
vector: vector:
- jobname: linux-clang
cc: clang
pool: ubuntu-latest
- jobname: linux-sha256 - jobname: linux-sha256
cc: clang cc: clang
pool: ubuntu-latest pool: ubuntu-latest
@ -273,11 +270,8 @@ jobs:
- jobname: linux-leaks - jobname: linux-leaks
cc: gcc cc: gcc
pool: ubuntu-latest pool: ubuntu-latest
- jobname: linux-asan - jobname: linux-asan-ubsan
cc: gcc cc: clang
pool: ubuntu-latest
- jobname: linux-ubsan
cc: gcc
pool: ubuntu-latest pool: ubuntu-latest
env: env:
CC: ${{matrix.vector.cc}} CC: ${{matrix.vector.cc}}

View File

@ -278,11 +278,8 @@ linux-leaks)
export GIT_TEST_PASSING_SANITIZE_LEAK=true export GIT_TEST_PASSING_SANITIZE_LEAK=true
export GIT_TEST_SANITIZE_LEAK_LOG=true export GIT_TEST_SANITIZE_LEAK_LOG=true
;; ;;
linux-asan) linux-asan-ubsan)
export SANITIZE=address export SANITIZE=address,undefined
;;
linux-ubsan)
export SANITIZE=undefined
;; ;;
esac esac