-
Notifications
You must be signed in to change notification settings - Fork 6
build: use CPM for dependencies #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Daan Timmer (daantimmer)
merged 33 commits into
main
from
feature/use-CPM-for-dependencies
Jul 24, 2026
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e9a1e17
chore: use CPM for dependencies
daantimmer 963d80b
fix: correct CUCUMBER_GHERKIN_TAG_DIGEST format and refactor ccr_reso…
daantimmer b70ac5e
refactor: simplify dependency declarations using ccr_dependency macro
daantimmer cc8c4d3
fix: uncomment CPMUsePackageLock to enable package locking
daantimmer 0df8ec8
fix: ensure compile warnings are treated as errors in standalone mode
daantimmer ffbdb65
fix: update conditions for sanitizer flags and warning errors in top-…
daantimmer 9622e5c
fix: add caching for CPM packages and ccache in CI workflows
daantimmer ef4b5de
Potential fix for pull request finding
daantimmer f0fdddc
Potential fix for pull request finding
daantimmer c558b66
Potential fix for pull request finding
daantimmer e7aa730
fix: add logging for current and URI paths in BaseCompatibility
daantimmer acace83
feat: add verbose output option and logging for step registration
daantimmer b9cccbf
feat: add logging for source location in DefinitionRegistration and S…
daantimmer 81bf8ef
fix: update CMakeLists.txt to use absolute paths for source files and…
daantimmer af486c0
fix: restore absolute path normalization for source files in CMakeLis…
daantimmer 1d64c82
feat: add compile definitions for source and binary directories in CM…
daantimmer 00ab02e
refactor: remove compile definitions for source and binary directorie…
daantimmer 318583c
feat: add compile definitions for CCR_BINARY_DIR in compatibility.bas…
daantimmer 81c758b
use absolute paths for attachments
daantimmer 552147f
Merge branch 'main' into feature/use-CPM-for-dependencies
daantimmer adf089a
resolve robot comments
daantimmer 2743412
don't use cache (cpm/ccache) for release builds
daantimmer 184d008
ci: update caching strategy for CPM packages and ccache
daantimmer 015731c
use re-usable actions for building
daantimmer cef6726
dont save cpm cache when restored
daantimmer 345a7e2
use resuable buildflow
daantimmer c06c774
resolve robot comments
daantimmer dd48177
resolve robot comments
daantimmer 6ee708e
remove ref from cache-key, remove ccache env variables
daantimmer e5833bc
update action inputs: make use-ccache required and ccache-key optional
daantimmer 9c73f68
Don't run CodeQL in a container
daantimmer bc0f286
Potential fix for pull request finding
daantimmer 17d003e
Merge branch 'main' into feature/use-CPM-for-dependencies
daantimmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,5 +13,8 @@ | |
| "github.vscode-github-actions" | ||
| ] | ||
| } | ||
| }, | ||
| "remoteEnv": { | ||
| "CPM_SOURCE_CACHE": "/root/cache/.cpm" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| --- | ||
| name: Build and Test | ||
| description: Builds and tests the project using CMake | ||
|
|
||
| inputs: | ||
| cpm-source-cache: | ||
| description: Path to the CPM source cache directory | ||
| required: true | ||
| use-ccache: | ||
| description: Use ccache to speed up builds | ||
| required: true | ||
| ccache-key: | ||
| description: Key for ccache cache | ||
| required: false | ||
| configure-preset: | ||
| description: CMake configure preset to use | ||
| required: true | ||
| build-preset: | ||
| description: CMake build preset to use | ||
| required: true | ||
| test-preset: | ||
| description: CMake test preset to use | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Restore CPM packages cache | ||
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| id: cache-cpm | ||
| with: | ||
| path: ${{ inputs.cpm-source-cache }} | ||
| key: cpm-${{ hashFiles('cmake/dependencies.cpm.cmake', 'cmake/package-lock.cmake') }} | ||
|
|
||
| - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | ||
| if: ${{ inputs.use-ccache == 'true' }} | ||
| with: | ||
| key: ${{ inputs.ccache-key }} | ||
| max-size: 2G | ||
| save: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
|
|
||
| - uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | ||
| with: | ||
| configurePreset: "${{ inputs.configure-preset }}" | ||
| buildPreset: "${{ inputs.build-preset }}" | ||
| testPreset: "${{ inputs.test-preset }}" | ||
| env: | ||
| CPM_SOURCE_CACHE: ${{ inputs.cpm-source-cache }} | ||
|
|
||
| - name: Save CPM packages cache | ||
| if: ${{ !startsWith(github.ref, 'refs/tags/') && steps.cache-cpm.outputs.cache-hit != 'true' }} | ||
| uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ${{ inputs.cpm-source-cache }} | ||
| key: cpm-${{ hashFiles('cmake/dependencies.cpm.cmake', 'cmake/package-lock.cmake') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| name: Build | ||
| description: Builds the project using CMake | ||
|
|
||
| inputs: | ||
| cpm-source-cache: | ||
| description: Path to the CPM source cache directory | ||
| required: true | ||
| use-ccache: | ||
| description: Use ccache to speed up builds | ||
| required: true | ||
| ccache-key: | ||
| description: Key for ccache cache | ||
| required: false | ||
| configure-preset: | ||
| description: CMake configure preset to use | ||
| required: true | ||
| build-preset: | ||
| description: CMake build preset to use | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Restore CPM packages cache | ||
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| id: cache-cpm | ||
| with: | ||
| path: ${{ inputs.cpm-source-cache }} | ||
| key: cpm-${{ hashFiles('cmake/dependencies.cpm.cmake', 'cmake/package-lock.cmake') }} | ||
|
|
||
| - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | ||
| if: ${{ inputs.use-ccache == 'true' }} | ||
| with: | ||
| key: ${{ inputs.ccache-key }} | ||
| max-size: 2G | ||
| save: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
| env: | ||
| CPM_SOURCE_CACHE: ${{ inputs.cpm-source-cache }} | ||
|
|
||
| - uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | ||
| with: | ||
| configurePreset: "${{ inputs.configure-preset }}" | ||
| buildPreset: "${{ inputs.build-preset }}" | ||
|
|
||
|
|
||
| - name: Save CPM packages cache | ||
| if: ${{ !startsWith(github.ref, 'refs/tags/') && steps.cache-cpm.outputs.cache-hit != 'true' }} | ||
| uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ${{ inputs.cpm-source-cache }} | ||
| key: cpm-${{ hashFiles('cmake/dependencies.cpm.cmake', 'cmake/package-lock.cmake') }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| name: Workflow Action | ||
| description: Uses a workflow preset for CMake | ||
|
|
||
| inputs: | ||
| cpm-source-cache: | ||
| description: Path to the CPM source cache directory | ||
| required: true | ||
| use-ccache: | ||
| description: Use ccache to speed up builds | ||
| required: true | ||
| ccache-key: | ||
| description: Key for ccache cache | ||
| required: false | ||
| workflow-preset: | ||
| description: CMake workflow preset to use | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Restore CPM packages cache | ||
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| id: cache-cpm | ||
| with: | ||
| path: ${{ inputs.cpm-source-cache }} | ||
| key: cpm-${{ hashFiles('cmake/dependencies.cpm.cmake', 'cmake/package-lock.cmake') }} | ||
|
|
||
| - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | ||
| if: ${{ inputs.use-ccache == 'true' }} | ||
| with: | ||
| key: ${{ inputs.ccache-key }} | ||
| max-size: 2G | ||
| save: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
|
|
||
| - uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | ||
| with: | ||
| workflowPreset: "${{ inputs.workflow-preset }}" | ||
| env: | ||
| CPM_SOURCE_CACHE: ${{ inputs.cpm-source-cache }} | ||
|
|
||
| - name: Save CPM packages cache | ||
| if: ${{ !startsWith(github.ref, 'refs/tags/') && steps.cache-cpm.outputs.cache-hit != 'true' }} | ||
| uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ${{ inputs.cpm-source-cache }} | ||
| key: cpm-${{ hashFiles('cmake/dependencies.cpm.cmake', 'cmake/package-lock.cmake') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.