From c93f377bfbbf3f9d15b410c3cc529b7dd3555f30 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 18 Mar 2026 02:34:45 +0100 Subject: [PATCH] Enable colour diagnostics in CI At least for CMake. --- .github/workflows/create-release-artifacts.yml | 4 ++++ .github/workflows/testing.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/create-release-artifacts.yml b/.github/workflows/create-release-artifacts.yml index 3e4c0d54..fea5e79f 100644 --- a/.github/workflows/create-release-artifacts.yml +++ b/.github/workflows/create-release-artifacts.yml @@ -4,6 +4,10 @@ on: tags: - v[0-9]* +env: + CLICOLOR_FORCE: 1 # Tells CMake to have colored output. + CMAKE_COLOR_DIAGNOSTICS: ON # Tells CMake-generated build systems to have colored output. + jobs: windows: runs-on: windows-2022 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 48847d51..d65def95 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -3,6 +3,10 @@ on: - push - pull_request +env: + CLICOLOR_FORCE: 1 # Tells CMake to have colored output. + CMAKE_COLOR_DIAGNOSTICS: ON # Tells CMake-generated build systems to have colored output. + jobs: unix: strategy: @@ -359,6 +363,7 @@ jobs: - name: Build & test using CMake on FreeBSD uses: vmactions/freebsd-vm@v1 with: + envs: CLICOLOR_FORCE CMAKE_COLOR_DIAGNOSTICS release: "14.3" usesh: true prepare: |