Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Use a seperate CI cmake preset to force build directory
Browse files Browse the repository at this point in the history
This fixes the non-uniform build output directory issue.
  • Loading branch information
emesare authored Apr 9, 2024
1 parent d5d1a8c commit 8801e84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- master

env:
CONFIGURE_PRESET: default-release
CONFIGURE_PRESET: ci-release

jobs:
build:
Expand Down
15 changes: 15 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/install/"
}
},
{
"name": "ci-release",
"displayName": "CI x64 Release",
"description": "Release x64 build using the Ninja generator in CI",
"binaryDir": "${sourceDir}/build/",
"generator": "Ninja",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/"
}
}
]
}

0 comments on commit 8801e84

Please sign in to comment.