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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 74fb5e5..1620227 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ releases may include breaking changes. ## [Unreleased] +## [2.4.2] - 2026-09-12 + +### Fixed + +- 🐛 Configure `sccache` compiler launchers for C++ coverage and linter builds + ([#472]) ([**@denialhaag**]) + ## [2.4.1] - 2026-09-11 ### Fixed @@ -525,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 @@ -573,6 +581,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