diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index 246008b..f138824 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -16,19 +16,23 @@ jobs: include: - name: Linux GCC os: ubuntu-latest - compiler: g++ + compiler_c: gcc + compiler_cpp: g++ - name: Linux Clang os: ubuntu-latest - compiler: clang++ + compiler_c: clang + compiler_cpp: clang++ - name: MacOS Clang os: macos-latest - compiler: clang++ + compiler_c: clang + compiler_cpp: clang++ - name: Windows GCC os: windows-latest - compiler: g++ + compiler_c: gcc + compiler_cpp: g++ steps: - name: Checkout @@ -41,7 +45,7 @@ jobs: ninjaVersion: "^1.0" # use most recent 1.x version - name: CMake Setup - run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_C_COMPILER=${{matrix.compiler_c}} CMAKE_CXX_COMPILER=${{matrix.compiler_cpp}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: CMake Build run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target caravan