From 92f30c58f88fdb2b18d781e7d1f13db7b25df9b0 Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Sun, 18 Feb 2024 13:57:13 -0500 Subject: [PATCH] explicitly point to compiler (for windows) --- .github/workflows/test.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 876d54a..5931e6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,15 +28,27 @@ jobs: - name: Install CMake uses: lukka/get-cmake@latest - - name: Install LLVM and Clang + - name: Install LLVM and Clang 17 uses: KyleMayes/install-llvm-action@v1 with: - version: "15" - env: ${{ matrix.compiler == 'llvm' }} - if: ${{ matrix.compiler == 'llvm' }} + version: "17" + env: true + if: ${{ matrix.compiler == 'llvm' && matrix.os != 'macos-latest' }} - - name: Configure - run: cmake -Bbuild -DBUILD_TESTS=YES + - name: Install LLVM and Clang 15 + uses: KyleMayes/install-llvm-action@v1 + with: + version: "15.0.7" + env: true + if: ${{ matrix.compiler == 'llvm' && matrix.os == 'macos-latest' }} + + - name: Configure for native compiler + run: cmake -B build -DBUILD_TESTS=YES + if: ${{ matrix.compiler == 'native'}} + + - name: Configure for non-native compiler + run: cmake -B build -G Ninja -DBUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" + if: ${{ matrix.compiler != 'native'}} - name: Build run: cmake --build build --config Release