Skip to content

Commit

Permalink
Switch how msys is set up
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jul 16, 2024
1 parent 32fb0cb commit 3fa857f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,31 @@ jobs:
- name: Setup GCC
if: ${{ matrix.compiler_package }}
run: sudo apt install -y ${{ matrix.compiler_package }}
- name: Setup MSYS
- name: '${{ matrix.icon }} Setup MSYS2'
if: ${{ matrix.msys }}
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msys }}
path-type: inherit
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: Configure CMake
if: ${{ !matrix.msys }}
shell: bash
run: >
cmake -B cmakebuild -G Ninja
cmake -B cmakebuild
--toolchain="toolchains/${{ matrix.os }}-${{ matrix.arch }}.cmake"
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Configure CMake
if: ${{ matrix.msys }}
shell: msys2 {0}
run: >
cmake -B cmakebuild -G Ninja
cmake -B cmakebuild
--toolchain="toolchains/${{ matrix.os }}-${{ matrix.arch }}.cmake"
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
Expand Down

0 comments on commit 3fa857f

Please sign in to comment.