-
Notifications
You must be signed in to change notification settings - Fork 20
63 lines (56 loc) · 1.62 KB
/
build_windows.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This workflow will build and test gbsplay in various configurations on Windows.
name: Windows Build
on:
push:
pull_request:
types: [opened]
schedule:
- cron: '23 4 5 * *'
jobs:
build-windows:
name: Build and test on Windows
runs-on: windows-latest
strategy:
matrix:
msystem: [MSYS, MINGW64, MINGW32]
flags: ['', '--enable-sharedlibgbs']
include:
- msystem: MSYS
packages: gcc
plugouts: dsound devdsp
- msystem: MINGW64
packages: mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2
plugouts: dsound sdl
- msystem: MINGW32
packages: mingw-w64-i686-toolchain mingw-w64-i686-SDL2
plugouts: dsound sdl
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install: git base-devel ${{ matrix.packages }} libintl gettext-devel zlib-devel
release: false
update: false
- name: Build and test
env:
CONFIGURE_FLAGS: ${{ matrix.flags }} --enable-verbosebuild
run: |
make
- name: Check activated plugouts
run: |
./check_plugouts.sh ${{ matrix.plugouts }}
- name: Check WAV plugout
run: |
./check_plugout_wav.sh
- name: Check build flags
run: |
./check_buildflags.sh --disable-hardening ${{ matrix.flags }} --enable-verbosebuild
- name: Dump configure on error
if: ${{ failure() }}
run: |
bash -x -v configure && cat config.err