From 4673fa88ebd7f6f0653b0bb5ab915b6981d39498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Ibarg=C3=BCen?= Date: Sun, 26 Feb 2023 21:50:48 +0000 Subject: [PATCH 1/2] config: use Ninja Multi-Config --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff942241..6885fa21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: ${{ matrix.platform.msys-env }}-SDL2 - name: Configure CMake - run: cmake -B build -G Ninja + run: cmake -B build -G 'Ninja Multi-Config' - name: Build run: cmake --build build --config Debug --verbose --parallel From a8d1ffdd28973d83321f10672c5e29e261523ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Ibarg=C3=BCen?= Date: Sun, 26 Feb 2023 22:05:23 +0000 Subject: [PATCH 2/2] feat: add clang build --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6885fa21..fe0401b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,8 @@ jobs: fail-fast: false matrix: platform: - - { name: Ubuntu, os: ubuntu-latest, shell: sh } + - { name: Ubuntu - gcc, os: ubuntu-latest, shell: sh } + - { name: Ubuntu - clang, os: ubuntu-latest, shell: sh } - { name: macOS, os: macos-latest, shell: sh } - { name: Windows - mingw32, os: windows-latest, shell: 'msys2 {0}', msystem: mingw32, msys-env: mingw-w64-i686 } - { name: Windows - mingw64, os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64 } @@ -53,7 +54,12 @@ jobs: ${{ matrix.platform.msys-env }}-SDL2 - name: Configure CMake + if: matrix.platform.name != 'Ubuntu - clang' run: cmake -B build -G 'Ninja Multi-Config' + - name: Configure CMake for Clang + if: matrix.platform.name == 'Ubuntu - clang' + run: CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -B build -G 'Ninja Multi-Config' + - name: Build run: cmake --build build --config Debug --verbose --parallel