-
Notifications
You must be signed in to change notification settings - Fork 63
Add CMake presets and start to use them in CI #905
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
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
89238f1
Add a basic cmake preset configuration
tmadlener 4560cbc
Start to use presets for CI workflows
tmadlener f5f3cd5
Add a build and a test preset for CI workflows
tmadlener 7bf4944
Use build and test presets in CI workflows
tmadlener 2c0a1b9
Do not use preset for building EDM4eic
tmadlener eccdf8a
Remove unnecessary argument for linux builds
tmadlener 142564e
fix: missing dash in argument
tmadlener 1e63381
Use preset for building in CI
tmadlener de0a6fe
Use native parallel build option for ctest in presets
tmadlener 7368627
Turn off schema evolution tests for base build
tmadlener b12a12d
Don't use jobs: 0 to avoid unbounded parallelism
tmadlener ebbadea
Use presets and update build commands in top level README
tmadlener 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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| { | ||
| "version": 3, | ||
| "configurePresets": [ | ||
| { | ||
| "name": "common", | ||
| "hidden": true, | ||
| "binaryDir": "${sourceDir}/build", | ||
| "cacheVariables": { | ||
| "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", | ||
| "CMAKE_CXX_STANDARD": "20", | ||
| "CMAKE_CXX_FLAGS": " -fdiagnostics-color=always ", | ||
| "PODIO_USE_CLANG_FORMAT": "OFF", | ||
| "PODIO_SET_RPATH": "ON", | ||
| "PODIO_ENABLE_SCHEMA_EVOLUTION_TESTS": "OFF" | ||
| } | ||
| }, | ||
| { | ||
| "name": "base-build", | ||
| "displayName": "Base Build including RNTuple backend and DataSource", | ||
| "inherits": "common", | ||
| "generator": "Ninja", | ||
| "cacheVariables": { | ||
| "BUILD_TESTING": "ON", | ||
tmadlener marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "ENABLE_RNTUPLE": "ON", | ||
| "ENABLE_DATASOURCE": "ON", | ||
| "CMAKE_CXX_COMPILER_LAUNCHER": "ccache" | ||
| } | ||
| }, | ||
| { | ||
| "name": "full-build", | ||
| "displayName": "Full build including schema evolution tests and SIO", | ||
| "inherits": "base-build", | ||
| "cacheVariables": { | ||
| "ENABLE_SIO": "ON", | ||
| "PODIO_ENABLE_SCHEMA_EVOLUTION_TESTS": "ON" | ||
tmadlener marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| }, | ||
| { | ||
| "name": "ci-build", | ||
| "displayName": "Full build with warnings as errors", | ||
| "inherits": "full-build", | ||
| "cacheVariables": { | ||
| "CMAKE_CXX_FLAGS": " -fdiagnostics-color=always -Werror -Wno-error=deprecated-declarations", | ||
| "PODIO_USE_CLANG_FORMAT": "AUTO" | ||
tmadlener marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| ], | ||
|
|
||
| "buildPresets": [ | ||
| { | ||
| "name": "ci-build", | ||
| "displayName": "Building like on CI", | ||
| "configurePreset": "ci-build", | ||
| "nativeToolOptions": ["-k0"] | ||
| } | ||
| ], | ||
|
|
||
| "testPresets": [ | ||
| { | ||
| "name": "ci-build", | ||
| "displayName": "Testing like on CI", | ||
| "configurePreset": "ci-build", | ||
| "execution": { | ||
| "stopOnFailure": false, | ||
| "scheduleRandom": true, | ||
| "timeout": 600 | ||
| }, | ||
| "output": { | ||
| "outputOnFailure": true | ||
| } | ||
|
|
||
| } | ||
| ] | ||
| } | ||
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
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.