Skip to content

Commit

Permalink
Use sourced profiles for dependency step
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 14, 2024
1 parent e85dc3a commit e7c8716
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ jobs:
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
if [ "${{ matrix.os }}" == "windows-latest" ]; then
echo "preset-name=conan-default" >> "$GITHUB_OUTPUT"
echo "profile=${{ github.workspace }}/.github/conan_config/msvc" >> "$GITHUB_OUTPUT"
else
echo "preset-name=conan-release" >> "$GITHUB_OUTPUT"
if [ "${{ matrix.c_compiler }}" == "gcc" ]; then
echo "profile=${{ github.workspace }}/.github/conan_config/gcc" >> "$GITHUB_OUTPUT"
else
echo "profile=${{ github.workspace }}/.github/conan_config/clang" >> "$GITHUB_OUTPUT"
fi
fi
- name: 🐸 Create default Conan profile
run: conan profile detect

- name: ☁️ Get dependencies
run: conan install ${{ github.workspace }} --build=missing -s compiler.cppstd=20 -o testing=True
run: conan install ${{ github.workspace }} --profile=${{ steps.strings.outputs.profile }} --build=missing -s compiler.cppstd=20 -o testing=True

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

0 comments on commit e7c8716

Please sign in to comment.