From bc0288bb3a05bd246ef7986338ba027a13dfc5a7 Mon Sep 17 00:00:00 2001 From: Daniel Haag <121057143+denialhaag@users.noreply.github.com> Date: Sat, 12 Sep 2026 03:20:22 +0200 Subject: [PATCH 1/3] Configure sccache for C++ coverage and linter builds Assisted-by: GPT-6 Astra via Codex --- .github/workflows/reusable-cpp-coverage.yml | 9 ++++++++- .github/workflows/reusable-cpp-linter.yml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-cpp-coverage.yml b/.github/workflows/reusable-cpp-coverage.yml index e04a2ba..1a7456a 100644 --- a/.github/workflows/reusable-cpp-coverage.yml +++ b/.github/workflows/reusable-cpp-coverage.yml @@ -100,7 +100,14 @@ jobs: echo "LIT_BIN=$(which lit)" >> $GITHUB_ENV - name: Configure CMake - run: cmake --preset coverage + env: + USE_SCCACHE_GHA: ${{ inputs.use-sccache-gha }} + run: | + args=() + if [[ "$USE_SCCACHE_GHA" == "true" ]]; then + args+=(-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache) + fi + cmake --preset coverage "${args[@]}" - name: Build run: cmake --build --preset coverage diff --git a/.github/workflows/reusable-cpp-linter.yml b/.github/workflows/reusable-cpp-linter.yml index 81886d5..cb78826 100644 --- a/.github/workflows/reusable-cpp-linter.yml +++ b/.github/workflows/reusable-cpp-linter.yml @@ -167,7 +167,14 @@ jobs: fi - name: Generate compilation database - run: cmake -B build --preset lint + env: + USE_SCCACHE_GHA: ${{ inputs.build-project && inputs.use-sccache-gha }} + run: | + args=() + if [[ "$USE_SCCACHE_GHA" == "true" ]]; then + args+=(-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache) + fi + cmake -B build --preset lint "${args[@]}" - name: Build if: ${{ inputs.build-project }} From f32d0b8b39b3362dc4eb34be616562f7f551ec5b Mon Sep 17 00:00:00 2001 From: Daniel Haag <121057143+denialhaag@users.noreply.github.com> Date: Sat, 12 Sep 2026 03:32:17 +0200 Subject: [PATCH 2/3] Update changelog for compiler-cache setup fix Assisted-by: GPT-6 Astra via Codex --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74fb5e5..d014b8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ releases may include breaking changes. ## [Unreleased] +### Fixed + +- 🐛 Configure `sccache` compiler launchers for C++ coverage and linter builds + ([#472]) ([**@denialhaag**]) + ## [2.4.1] - 2026-09-11 ### Fixed @@ -573,6 +578,7 @@ _📚 Refer to the [GitHub Release Notes] for previous changelogs._ +[#472]: https://github.com/munich-quantum-toolkit/workflows/pull/472 [#470]: https://github.com/munich-quantum-toolkit/workflows/pull/470 [#463]: https://github.com/munich-quantum-toolkit/workflows/pull/463 [#462]: https://github.com/munich-quantum-toolkit/workflows/pull/462 From 49821706a4c7889fbc27087e765898655bf97bb7 Mon Sep 17 00:00:00 2001 From: Daniel Haag <121057143+denialhaag@users.noreply.github.com> Date: Sat, 12 Sep 2026 03:32:18 +0200 Subject: [PATCH 3/3] Prepare release of `v2.4.2` Assisted-by: GPT-6 Astra via Codex --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d014b8e..1620227 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ releases may include breaking changes. ## [Unreleased] +## [2.4.2] - 2026-09-12 + ### Fixed - 🐛 Configure `sccache` compiler launchers for C++ coverage and linter builds @@ -530,7 +532,8 @@ _📚 Refer to the [GitHub Release Notes] for previous changelogs._ -[unreleased]: https://github.com/munich-quantum-toolkit/workflows/compare/v2.4.1...HEAD +[unreleased]: https://github.com/munich-quantum-toolkit/workflows/compare/v2.4.2...HEAD +[2.4.2]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v2.4.2 [2.4.1]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v2.4.1 [2.4.0]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v2.4.0 [2.3.1]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v2.3.1