2020-11-17 20:45:51 +00:00
|
|
|
name: MSYS2 build
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
2020-11-18 02:46:06 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-11-18 03:33:39 +00:00
|
|
|
msys: [MSYS, MINGW32, MINGW64]
|
2020-11-17 20:45:51 +00:00
|
|
|
steps:
|
2022-12-16 02:10:46 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-17 21:11:46 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2020-11-17 20:45:51 +00:00
|
|
|
|
|
|
|
- name: Setup MSYS2
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
path-type: strict
|
2020-11-18 03:33:39 +00:00
|
|
|
msystem: ${{ matrix.msys }}
|
2020-11-17 21:07:41 +00:00
|
|
|
install: make gcc mingw32/mingw-w64-i686-gcc mingw64/mingw-w64-x86_64-gcc
|
2020-11-17 20:45:51 +00:00
|
|
|
|
|
|
|
# Runs a single command using the runners shell
|
2020-11-18 02:46:06 +00:00
|
|
|
- name: Make ${{ matrix.msys }}
|
2020-11-18 03:33:39 +00:00
|
|
|
run: msys2 -c 'make'
|
2020-11-18 03:02:50 +00:00
|
|
|
|
|
|
|
- name: Artifacts
|
2022-12-16 02:10:46 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-11-18 03:02:50 +00:00
|
|
|
with:
|
|
|
|
name: binaries - ${{ matrix.msys }}
|
2020-11-18 03:26:48 +00:00
|
|
|
path: "*.exe"
|