Skip to content

Commit

Permalink
Update building.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
r3w0p committed May 24, 2024
1 parent 49d1d2f commit bc4f785
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit bc4f785

Please sign in to comment.