-
Notifications
You must be signed in to change notification settings - Fork 93
105 lines (88 loc) · 2.47 KB
/
build.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: build
on:
push:
branches: [master, ci]
pull_request:
branches: [master]
env:
MESON_ARGS: >-
--auto-features=enabled
--fatal-meson-warnings
-Danticheat-server=true
-Davcodec=disabled
-Dclient-gtv=true
-Dpacketdup-hack=true
-Dtests=true
-Dvariable-fps=true
-Dwerror=true
MESON_ARGS_WIN: >-
-Dsdl2=disabled
-Dwayland=disabled
-Dwrap_mode=forcefallback
-Dx11=disabled
MESON_ARGS_LINUX: >-
-Dwindows-crash-dumps=disabled
-Dwrap_mode=nofallback
jobs:
mingw:
runs-on: ubuntu-latest
strategy:
matrix:
arch: ["i686", "x86_64"]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: subprojects/packagecache
key: ${{ hashFiles('subprojects/*.wrap') }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64 nasm python3-pip ninja-build
sudo python3 -m pip install meson
- name: Build
run: |
meson setup --cross-file=.ci/${{ matrix.arch }}-w64-mingw32.txt \
${{ env.MESON_ARGS }} ${{ env.MESON_ARGS_WIN }} builddir
meson compile -C builddir
msvc:
runs-on: windows-latest
strategy:
matrix:
arch: ["x86", "x64"]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: subprojects/packagecache
key: ${{ hashFiles('subprojects/*.wrap') }}
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- uses: ilammy/setup-nasm@v1
- name: Install dependencies
run: pip3 install --no-input meson ninja
- name: Build
run: |
meson setup ${{ env.MESON_ARGS }} ${{ env.MESON_ARGS_WIN }} builddir
meson compile -C builddir
linux:
runs-on: ubuntu-latest
strategy:
matrix:
cc: [gcc, clang]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y meson libsdl2-dev libopenal-dev \
libpng-dev libjpeg-dev zlib1g-dev mesa-common-dev \
libcurl4-gnutls-dev libx11-dev libxi-dev \
libwayland-dev wayland-protocols libdecor-0-dev
- name: Build
run: |
meson setup ${{ env.MESON_ARGS }} ${{ env.MESON_ARGS_LINUX }} builddir
meson compile -C builddir
env:
CC: ${{ matrix.cc }}