summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/cmake.yml
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-02 22:17:48 +0000
committerGitHub <noreply@github.com>2022-01-02 22:17:48 +0000
commit14283246ab097199e0226db117ddb9cc097d6086 (patch)
treef3020c8228cd0ac7cd57fed0a4f8e7abc62cd6d6 /.github/workflows/cmake.yml
parent98f85fe6ede3f59b757417195d19c7a2f7b9522e (diff)
Update cmake.yml
Diffstat (limited to '.github/workflows/cmake.yml')
-rw-r--r--.github/workflows/cmake.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 19761e22..834ac46d 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -22,7 +22,17 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [macos-latest, windows-latest, ubuntu-latest]
+ include:
+ - os: macos-latest
+ CC: clang
+ CXX: clang++
+ - os: ubuntu-latest
+ CC: cc
+ CXX: c++
+ - os: windows-latest
+ environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
+ CC: cl
+ CXX: cl
steps:
- uses: actions/checkout@v2
@@ -48,6 +58,9 @@ jobs:
# 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
run: cmake -S ${{github.workspace}}/ -B ${{github.workspace}}/build -G "Ninja Multi-Config" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
+ env:
+ CC: ${{ matrix.CC }}
+ CXX: ${{ matrix.CXX }}
- name: Build
# Build your program with the given configuration