From 6e0af211a883389c37cf560b65417439e0859fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yohann=20B=C3=A9n=C3=A9dic?= Date: Thu, 15 Feb 2024 12:37:45 +0100 Subject: [PATCH] forcing bash on windows runners --- .github/workflows/unit_tests.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 2b9898e..f199921 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -24,12 +24,13 @@ jobs: - name: Set MSVC environment if: matrix.compiler == 'msvc' + shell: bash run: | - echo VCPKG_TARGET_TRIPLET=x64-windows | Out-File -FilePath $env:GITHUB_ENV -Append - echo CXXFLAGS=/EHsc /W4 | Out-File -FilePath $env:GITHUB_ENV -Append - echo CFLAGS=/EHsc /W4 | Out-File -FilePath $env:GITHUB_ENV -Append + echo VCPKG_TARGET_TRIPLET=x64-windows >> $GITHUB_ENV + echo CXXFLAGS=/EHsc /W4 >> $GITHUB_ENV + echo CFLAGS=/EHsc /W4 >> $GITHUB_ENV - - name: Set GCC + - name: Set GCC environment if: matrix.compiler == 'gcc' run: | echo VCPKG_TARGET_TRIPLET=x64-linux >> $GITHUB_ENV @@ -38,7 +39,7 @@ jobs: echo CC=gcc-13 >> $GITHUB_ENV echo CXX=g++-13 >> $GITHUB_ENV - - name: Set CLang + - name: Set CLang environment if: matrix.compiler == 'clang' run: | echo VCPKG_TARGET_TRIPLET=x64-linux >> $GITHUB_ENV @@ -48,7 +49,8 @@ jobs: echo CXX=clang++-15 >> $GITHUB_ENV - name: Configure - run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.config }} --toolchain "${{ env.VCPKG_INSTALLATION_ROOT }}/scripts/buildsystems/vcpkg.cmake" + shell: bash + run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.config }} --toolchain "$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" - name: Build run: cmake --build build --config ${{ matrix.config }} --parallel