-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (30 loc) · 1 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
name: crossbuild windows
on:
push:
branches:
- master
jobs:
win-build:
strategy:
matrix:
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Update submodules
run: 'git submodule update --init --recursive'
- name: Build
run: 'make; make describe'
- name: Install MinGW toolchain
run: 'sudo apt install gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 -y'
- name: Install 32-bit subsystem
run: 'sudo dpkg --add-architecture i386; sudo apt update'
- name: Install wine (32- and 64-bit both)
run: 'sudo apt install wine32 wine64'
- name: Start Virtual Framebuffer for Wine
run: 'sudo apt install xvfb; Xvfb :0 -screen 0 1024x768x16 &'
- name: Create wine prefix
run: 'wine cmd /c echo Wine environment created for %PROCESSOR_IDENTIFIER%'
- name: Regression tests
run: 'DEV_MACHINE=1 HAS_32CDEFS=0 HAS_64CDEFS=0 DISPLAY=:0.0 make check'