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 e163b86
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 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 @@ -87,11 +93,10 @@ jobs:
run: conan install ${{ github.workspace }} --build=missing -s compiler.cppstd=20 -o testing=True

- name: 🛠️ Configure CMake
run: cmake --preset conan-release
run: cmake --preset ${{ steps.strings.outputs.preset-name }}

- 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 e163b86

Please sign in to comment.