Skip to content

Commit

Permalink
Added the Msys2 Default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanKrMahato committed Dec 5, 2024
1 parent 7992e57 commit 7b42f79
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ jobs:
- { sys: clang64, build_type: Debug }
- { sys: clang64, build_type: Release }

defaults:
run:
shell: msys2 {0}

steps:
- name: Check out the repository
uses: actions/checkout@v4
Expand All @@ -95,38 +99,30 @@ jobs:
install: >-
base-devel
git
mingw-w64-x86_64-toolchain
cmake
make
pacboy: >-
toolchain:p
cmake:p
- name: Add MSYS2 to PATH
run: |
echo "C:\\msys64\\${{ matrix.sys }}\\bin" >> $Env:GITHUB_PATH
echo "C:\\msys64\\usr\\bin" >> $Env:GITHUB_PATH
ninja:p
- name: Create build directory
run: mkdir build

- name: Configure with CMake
working-directory: ./build
shell: cmd
run: |
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DOPTION_FORK_SAFE=OFF -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF ..
- name: Build with CMake
working-directory: ./build
shell: cmd
run: |
cmake --build .
- name: Run CTest
working-directory: ./build
run: |
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 5400 --output-on-failure -C ${{ matrix.build_type }}
shell: bash
windows-distributable:
name: Windows Distributable Dispatch
Expand Down

0 comments on commit 7b42f79

Please sign in to comment.