From 942b74880737d299ce44ebe3382bef4ba6b1679a Mon Sep 17 00:00:00 2001 From: Guilherme Amadio <amadio@cern.ch> Date: Mon, 8 Apr 2024 11:45:26 +0200 Subject: [PATCH] Fix GitHub Actions builds on Ubuntu with clang --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca9efff..5f4ca8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,9 @@ jobs: compiler: [ gcc, clang ] target: [ sse4.2, avx2 ] + env: + CC: ${{ matrix.compiler }} + steps: - uses: actions/checkout@master with: @@ -28,7 +31,7 @@ jobs: sudo apt-get install -y cmake pkg-config libgd-dev ${{matrix.compiler}} - name: CTest Build - run: ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}} + run: env CC=${CC} CXX=${CC/g*/g++} ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}} macos: name: MacOS -- GitLab