Skip to content

Commit

Permalink
Add CI linux presets and re-enable build
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Feb 19, 2024
1 parent dec1c8d commit 0b91a18
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Configure
run: cmake --preset default
- name: Run Workflow
run: cmake --workflow--preset ci-linux

windows-build:
runs-on: windows-latest
Expand Down
49 changes: 46 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,48 @@
"name": "cppcheck",
"displayName": "Configure for use with cppcheck",
"inherits": [ "sibling-build-preset", "compile-commands" ]
},
{
"name": "ci-linux",
"displayName": "Configure for use with CI build on linux",
"inherits": [ "sibling-build-preset", "compile-commands" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
}
],
"buildPresets": [
{
"name": "default",
"displayName": "Build with default settings",
"configurePreset": "default"
},
{
"name": "ci-linux",
"displayName": "Build with CI linux settings",
"configurePreset": "ci-linux",
"configuration": "Debug"
}
],
"testPresets": [
{
"name": "default",
"displayName": "Test with default settings",
"configurePreset": "default",
"name": "settings",
"hidden": true,
"output": {
"outputOnFailure": true
}
},
{
"name": "default",
"displayName": "Test with default settings",
"configurePreset": "default",
"inherits": [ "settings" ]
},
{
"name": "ci-linux",
"displayName": "Test with CI linux settings",
"configurePreset": "ci-linux",
"inherits": [ "settings" ]
}
],
"workflowPresets": [
Expand All @@ -72,6 +97,24 @@
"name": "default"
}
]
},
{
"name": "ci-linux",
"displayName": "Workflow with CI linux settings: configure, build and test",
"steps": [
{
"type": "configure",
"name": "ci-linux"
},
{
"type": "build",
"name": "ci-linux"
},
{
"type": "test",
"name": "ci-linux"
}
]
}
]
}

0 comments on commit 0b91a18

Please sign in to comment.