-
Notifications
You must be signed in to change notification settings - Fork 29
207 lines (162 loc) · 5.01 KB
/
ci.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
name: CI
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
- releases/*
pull_request:
branches:
- master
jobs:
ubuntu-x86-64:
name: Ubuntu cross build (x86-64 GCC)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Remove mono runtime
run: sudo apt-get purge mono-runtime
- name: Install dependencies
run: >-
sudo apt-get update &&
sudo apt-get install -y --no-install-recommends
mingw-w64-{x86-64-dev,tools} {gcc,g++,binutils}-mingw-w64-x86-64
ninja-build python3-pip wine wine-binfmt
- name: Install newest meson
run: >-
sudo PIP_BREAK_SYSTEM_PACKAGES=1 pip3 install meson
- name: Run tests
run: >-
meson setup --cross-file meson.cross.x86_64-w64-mingw32
-Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t15 -Cbuild_ci
linaro-ubuntu-arm64:
name: Ubuntu cross build (ARM64 Clang)
runs-on: ubuntu-latest
container: linaro/wine-arm64
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: >-
apt-get update &&
apt-get install -y --no-install-recommends
ninja-build python3-pip
- name: Install newest meson
run: >-
PIP_BREAK_SYSTEM_PACKAGES=1 pip3 install meson
- name: Download llvm-mingw
run: >-
wget 'https://github.com/mstorsjo/llvm-mingw/releases/download/20240917/llvm-mingw-20240917-ucrt-ubuntu-20.04-x86_64.tar.xz'
&& tar -xaf llvm-mingw-20240917-ucrt-ubuntu-20.04-x86_64.tar.xz
- name: Run tests
run: >-
export PATH=$(pwd)/llvm-mingw-20240917-ucrt-ubuntu-20.04-x86_64/bin:$PATH;
meson setup --cross-file meson.cross.aarch64-w64-mingw32
-Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t60 -Cbuild_ci
msys2-ucrt64:
name: MSYS2 native build (x86-64 GCC)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
- name: Install dependencies
run: >-
pacman -Sy --needed --noconfirm
mingw-w64-ucrt-x86_64-{{headers,crt,tools}-git,gcc,meson}
- name: Run tests
run: >-
meson setup -Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t2 -Cbuild_ci
msys2-mingw32:
name: MSYS2 native build (x86-32 GCC)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
- name: Install dependencies
run: >-
pacman -Sy --needed --noconfirm
mingw-w64-i686-{{headers,crt,tools}-git,gcc,meson,ninja}
- name: Run tests
run: >-
meson setup -Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t2 -Cbuild_ci
msys2-clang64:
name: MSYS2 native build (x86-64 Clang)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: CLANG64
- name: Install dependencies
run: >-
pacman -Sy --needed --noconfirm
mingw-w64-clang-x86_64-{{headers,crt,tools}-git,clang,meson,ninja}
- name: Run tests
run: >-
meson setup -Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t2 -Cbuild_ci
msvc-x64:
name: MSVC native build (x86-64 Clang-CL)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
- name: Install dependencies
run: >-
pacman -Sy --needed --noconfirm
mingw-w64-ucrt-x86_64-{meson,ninja}
- name: Run tests
run: >-
meson setup --native-file meson.native.clang
-Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t2 -Cbuild_ci
msvc-x86:
name: MSVC native build (x86-32 Clang-CL)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
- name: Install dependencies
run: >-
pacman -Sy --needed --noconfirm
mingw-w64-i686-{meson,ninja}
- name: Run tests
run: >-
meson setup --native-file meson.native.clang
-Denable-debug-checks=true -Doptimization=1 build_ci
&& meson compile -Cbuild_ci
&& meson test -t2 -Cbuild_ci