From e7c8716122968d9e02e84df35ab30ac22bb36f22 Mon Sep 17 00:00:00 2001 From: Master92 Date: Thu, 14 Nov 2024 10:54:08 +0100 Subject: [PATCH] Use sourced profiles for dependency step --- .github/workflows/build.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 52976c4..c220b81 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 }}