Skip to content

Commit

Permalink
Fix preset name based on runner os
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Dec 5, 2023
1 parent 82fbf39 commit 66e2e08
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ jobs:
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
if [ "${{ matrix.os }}" == "windows-latest" ]; then
echo "preset-name=conan-default" >> "$GITHUB_OUTPUT"
else
echo "preset-name=conan-release" >> "$GITHUB_OUTPUT"
fi
- name: 🐸 Create default Conan profile
run: conan profile detect
Expand All @@ -90,8 +96,7 @@ jobs:
run: cmake --preset conan-release

- name: 🔨 Build project
run: cmake --build --preset conan-release --parallel
run: cmake --build --preset ${{ steps.strings.outputs.preset-name }} --parallel

- name: 🏃 Run test suite
working-directory: build
run: ctest --build-config ${{ matrix.build_type }}
run: ctest --preset ${{ steps.strings.outputs.preset-name }}

0 comments on commit 66e2e08

Please sign in to comment.