Skip to content

Commit

Permalink
Add Host-Single-Debug, use for MacOS ci
Browse files Browse the repository at this point in the history
  • Loading branch information
richardapeters committed Sep 7, 2023
1 parent 04d633e commit b33b504
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 27 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@ jobs:
strategy:
matrix:
os: [windows-latest, windows-2019]
include:
- visual-studio: "2022"
os: "windows-latest"
- visual-studio: "2019"
os: "windows-2019"
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
persist-credentials: false
- uses: ilammy/msvc-dev-cmd@cec98b9d092141f74527d0afa6feb2af698cfe89 # v1.12.1
with:
vsversion: "2022"
vsversion: ${{ matrix.visual-studio }}
- uses: lukka/run-vcpkg@abed23940f9d7bc267b0e1a21ee7b699a3794baa # v11.1
with:
vcpkgGitCommitId: 501db0f17ef6df184fcdbfbe0f87cde2313b6ab1 # 2023.04.15
Expand Down Expand Up @@ -95,8 +100,8 @@ jobs:
variant: sccache
- uses: lukka/run-cmake@c2b72aff009141774c5a5fabe74ea46c8c04d9c4 # v10.6
with:
configurePreset: "Host"
buildPreset: "Host-Debug"
configurePreset: "Host-Single-Debug"
buildPreset: "Host-Single-Debug"
testPreset: "Host"
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']"
- name: Upload test logs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: lukka/run-cmake@c2b72aff009141774c5a5fabe74ea46c8c04d9c4 # v10.6
with:
configurePreset: "Host-Single-MinSizeRel"
buildPreset: "Package"
buildPreset: "ReleasePackage"
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']"
- run: gh release upload ${{ needs.release_please.outputs.tag_name }} build/**/emil-*.zip --clobber
shell: bash
Expand Down
60 changes: 37 additions & 23 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"name": "Host",
"displayName": "Configuration for Host Tooling",
"displayName": "Configuration for Host Tooling and Tests",
"inherits": "defaults",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;Release;RelWithDebInfo;MinSizeRel",
Expand All @@ -22,9 +22,18 @@
},
"generator": "Ninja Multi-Config"
},
{
"name": "Host-Single-Debug",
"displayName": "Configuration for Host Tooling and Tests, Single Config Generator, Debug",
"inherits": "defaults",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"EMIL_ENABLE_DOCKER_TOOLS": "Off"
}
},
{
"name": "Host-Single-MinSizeRel",
"displayName": "Configuration for Host Tooling",
"displayName": "Configuration for Host Tooling and Tests, Single Config Generator, MinSizeRel",
"inherits": "defaults",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
Expand Down Expand Up @@ -108,27 +117,6 @@
}
],
"buildPresets": [
{
"name": "Package",
"configuration": "MinSizeRel",
"configurePreset": "Host-Single-MinSizeRel",
"targets": [ "package" ]
},
{
"name": "Coverage",
"configuration": "Debug",
"configurePreset": "Coverage"
},
{
"name": "MutationTesting",
"configuration": "Debug",
"configurePreset": "MutationTesting"
},
{
"name": "Fuzzing",
"configuration": "Debug",
"configurePreset": "Fuzzing"
},
{
"name": "Host-Debug",
"configuration": "Debug",
Expand All @@ -155,6 +143,32 @@
"configuration": "MinSizeRel",
"configurePreset": "Host"
},
{
"name": "Host-Single-Debug",
"configuration": "Debug",
"configurePreset": "Host-Single-Debug"
},
{
"name": "ReleasePackage",
"configuration": "MinSizeRel",
"configurePreset": "Host-Single-MinSizeRel",
"targets": [ "package" ]
},
{
"name": "Coverage",
"configuration": "Debug",
"configurePreset": "Coverage"
},
{
"name": "MutationTesting",
"configuration": "Debug",
"configurePreset": "MutationTesting"
},
{
"name": "Fuzzing",
"configuration": "Debug",
"configurePreset": "Fuzzing"
},
{
"name": "HostClangMsvc-Debug",
"configuration": "Debug",
Expand Down

0 comments on commit b33b504

Please sign in to comment.