Skip to content

Commit fe5ea3f

Browse files
committed
CI-mingw.yml: use pre-installed MinGW/MSYS2
1 parent 62f3efd commit fe5ea3f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/CI-mingw.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,29 @@ permissions:
1111

1212
defaults:
1313
run:
14-
shell: cmd
14+
shell: msys2 {0}
1515

1616
jobs:
1717
build_mingw:
1818
strategy:
1919
matrix:
20-
os: [windows-2019] # fails to download with "windows-2022"
21-
arch: [x64] # TODO: fix x86 build?
20+
# the MinGW installation in windows-2019 is supposed to be 8.1 but it is 12.2
21+
# the MinGW installation in windows-2022 is not including all necessary packages by default so use the older one instead
22+
# TODO: add 32-bit build?
23+
os: [windows-2019]
2224
fail-fast: false
2325

2426
runs-on: ${{ matrix.os }}
2527

2628
steps:
2729
- uses: actions/checkout@v2
2830

29-
- name: Set up MinGW
30-
uses: egor-tensin/setup-mingw@v2
31+
- name: Set up MSYS2
32+
uses: msys2/setup-msys2@v2
3133
with:
32-
platform: ${{ matrix.arch }}
34+
release: false # use pre-installed
3335

3436
# MinGW will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries.
3537
- name: Build all and run test
3638
run: |
37-
mingw32-make VERBOSE=1 -j2 check
39+
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 check

0 commit comments

Comments
 (0)