Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Dec 8, 2024
1 parent 0772e56 commit 9be88b3
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
- name: cmake
uses: lukka/run-cmake@v10
with:
configurePreset: "ci-${{matrix.os}}"
buildPreset: "default"
testPreset: "ci-${{matrix.os}}"
workflowPreset: "ci-${{matrix.os}}"
- name: artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
89 changes: 88 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,40 @@
"displayName": "Default Build",
"description": "Default Build",
"jobs": 2
},
{
"name": "windows-msvc",
"inherits": "default",
"configurePreset": "windows-msvc",
"displayName": "Windows (MSVC)",
"description": "This preset is used to build using the MSVC toolchain on Windows"
},
{
"name": "linux-clang",
"inherits": "default",
"configurePreset": "linux-clang",
"displayName": "Linux (Clang)",
"description": "This preset is used to build using the Clang toolchain on Linux"
},
{
"name": "linux-gnu",
"inherits": "default",
"configurePreset": "linux-gnu",
"displayName": "Linux (GNU)",
"description": "This preset is used to build using the GNU toolchain on Linux"
},
{
"name": "macos",
"inherits": "default",
"configurePreset": "macos",
"displayName": "MacOS",
"description": "This preset is used to build on MacOS"
}
],
"testPresets": [
{
"name": "ci-ubuntu-22.04",
"configurePreset": "linux-clang",
"configurePreset": "linux-gnu",
"displayName": "CI Tests on Linux",
"description": "Runs all tests on a linux configuration",
"execution": {
Expand Down Expand Up @@ -128,5 +156,64 @@
}
}
}
],
"workflowPresets": [
{
"name": "ci-windows-2022",
"displayName": "Windows (MSVC)",
"description": "CI workflow preset for Windows",
"steps": [
{
"type": "configure",
"name": "windows-msvc"
},
{
"type": "build",
"name": "windows-msvc"
},
{
"type": "test",
"name": "ci-windows-2022"
}
]
},
{
"name": "ci-ubuntu-22.04",
"displayName": "Linux (GNU)",
"description": "CI workflow preset for Ubuntu",
"steps": [
{
"type": "configure",
"name": "linux-gnu"
},
{
"type": "build",
"name": "linux-gnu"
},
{
"type": "test",
"name": "ci-ubuntu-22.04"
}
]
},
{
"name": "ci-macos-13",
"displayName": "MacOS (Clang)",
"description": "CI workflow preset for MacOS",
"steps": [
{
"type": "configure",
"name": "macos"
},
{
"type": "build",
"name": "macos"
},
{
"type": "test",
"name": "ci-macos-13"
}
]
}
]
}

0 comments on commit 9be88b3

Please sign in to comment.