Skip to content

Commit

Permalink
forcing bash on windows runners
Browse files Browse the repository at this point in the history
  • Loading branch information
yobeonline committed Feb 15, 2024
1 parent f211a30 commit 6e0af21
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6e0af21

Please sign in to comment.