2022-02-16 07:06:04 +01:00
# Some convenient links:
# - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
#
name : CI-mingw
on : [ push,pull_request]
2022-08-26 23:25:07 +02:00
permissions :
contents : read
2022-02-16 07:06:04 +01:00
defaults :
run :
shell : cmd
jobs :
build_mingw :
strategy :
matrix :
2022-07-13 21:09:07 +02:00
os : [ windows-2019] # fails to download with "windows-2022"
2022-02-16 07:06:04 +01:00
arch: [x64] # TODO : fix x86 build?
fail-fast : false
runs-on : ${{ matrix.os }}
steps :
- uses : actions/checkout@v2
- name : Set up MinGW
uses : egor-tensin/setup-mingw@v2
with :
platform : ${{ matrix.arch }}
2022-07-13 21:09:07 +02:00
# 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.
- name : Build all and run test
2022-02-16 07:06:04 +01:00
run : |
mingw32-make -j2 check