Skip to content

Commit 13fdbde

Browse files
committed
It looks like the preset is only called default for config?
1 parent 7a3cd99 commit 13fdbde

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cmake_windows.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ jobs:
3535
- name: Install conan dependencies
3636
run: conan install conanfile.py -s build_type=${{env.BUILD_TYPE}} --build=missing
3737

38+
- name: Normalize build type
39+
shell: bash
40+
# The build type is Capitalized, e.g. Release, but the preset is all lowercase, e.g. release.
41+
# There is no built in way to do string manipulations on GHA as far as I know.`
42+
run: echo "BUILD_TYPE_LOWERCASE=$(echo "${BUILD_TYPE}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
43+
3844
- name: Configure CMake
3945
shell: bash
4046
run: cmake --preset conan-default
4147

4248
- name: Build
4349
shell: bash
44-
run: cmake --build --preset conan-default
50+
run: cmake --build --preset conan-${{ env.BUILD_TYPE_LOWERCASE }}
4551

4652
- name: run test (Windows)
4753
working-directory: ${{github.workspace}}/build/${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)