-
Notifications
You must be signed in to change notification settings - Fork 224
43 lines (36 loc) · 1.23 KB
/
build-mingw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Windows CI (mingw)
on: [push, pull_request]
jobs:
build-mingw:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows (mingw64), os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64, makefile: Makefile.w64 }
- { name: Windows (mingw32), os: windows-latest, shell: 'msys2 {0}', msystem: mingw32, msys-env: mingw-w64-i686, makefile: Makefile.w32 }
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.platform.msystem }}
install: base-devel
${{ matrix.platform.msys-env }}-gcc
${{ matrix.platform.msys-env }}-glslang
- uses: actions/checkout@v4
- name: Build MinGW
run: |
set -eu
parallel="$(getconf _NPROCESSORS_ONLN)"
make -j"${parallel}" -C Quake -f ${{ matrix.platform.makefile }} all
- name: Upload vkQuake
uses: actions/upload-artifact@v4
with:
name: vkQuake archive (${{ matrix.platform.msystem }})
path: |
Quake/*.exe
Quake/*.dll