From 3ed31493e08f06f48a5cef7a4c2f1cc115adf7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Tue, 2 Apr 2024 11:23:45 +0200 Subject: [PATCH] Color the GHA build when using Ninja --- .github/workflows/build_linux.yml | 4 ++-- .github/workflows/build_mingw.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index d794e318..382d4463 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -35,10 +35,10 @@ jobs: - name: Configure with SDL1 if: matrix.sdl == 1 - run: cmake -B build -G Ninja -DUSE_SDL2_LIBS=OFF -DUSE_PNG_SAVE=OFF -DSMW_INSTALL_PORTABLE=ON + run: cmake -B build -G Ninja -DUSE_SDL2_LIBS=OFF -DUSE_PNG_SAVE=OFF -DSMW_INSTALL_PORTABLE=ON -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always - name: Configure with SDL2 if: matrix.sdl == 2 - run: cmake -B build -G Ninja -DUSE_SDL2_LIBS=ON -DUSE_PNG_SAVE=ON -DSMW_INSTALL_PORTABLE=ON + run: cmake -B build -G Ninja -DUSE_SDL2_LIBS=ON -DUSE_PNG_SAVE=ON -DSMW_INSTALL_PORTABLE=ON -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always - name: Build run: cmake --build build --verbose diff --git a/.github/workflows/build_mingw.yml b/.github/workflows/build_mingw.yml index a5ee682a..ad7692ac 100644 --- a/.github/workflows/build_mingw.yml +++ b/.github/workflows/build_mingw.yml @@ -25,6 +25,7 @@ jobs: -DUSE_PNG_SAVE=ON -DUSE_SDL2_LIBS=ON -DSDL2_USE_MIXERX=ON + -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always - name: Build run: cmake --build build --verbose