diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4765a825fc35..a9956dfa758c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,15 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '') + - name: Install clang + if: matrix.sanitizers == "Sanitizers" + run: | + # TODO remove this once the weekly is done + apt -y update + apt -y upgrade + apt install -y clang + which clang + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type @@ -123,12 +132,7 @@ jobs: export ASAN="OFF" export USAN="OFF" - if [[ ${{matrix.sanitizers}} == "Sanitizers" ]]; then - # TODO remove this once the weekly is done - apt -y update - apt -y upgrade - apt install -y clang - which clang + if [ ${{matrix.sanitizers}} == "Sanitizers" ]; then export ASAN="ON" export USAN="ON" fi @@ -139,12 +143,12 @@ jobs: -GNinja \ -DCMAKE_C_COMPILER="${{matrix.compiler.c}}" \ -DCMAKE_CXX_COMPILER="${{matrix.compiler.cxx}}" \ - -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache \ -DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}} -no-pie" -DWITH_AWS:BOOL=OFF \ -DHELIO_STACK_CHECK:STRING=4096 \ -DWITH_ASAN=${ASAN} \ -DWITH_USAN=${USAN} \ -L + #-DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache \ cd ${GITHUB_WORKSPACE}/build && pwd du -hcs _deps/