forked from freeciv/freeciv
-
Notifications
You must be signed in to change notification settings - Fork 0
266 lines (264 loc) · 7.1 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
name: continuous integration
on:
- pull_request
- push
- workflow_dispatch
jobs:
msys2:
runs-on: windows-2022
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
# A mapping from msys2/setup-msys2 version to msys2 version can be
# found at
# https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md
# 2.20.1 provides msys2 snapshot 20230718
uses: msys2/setup-msys2@v2.20.1
with:
msystem: UCRT64
install: >
make
gettext
git
automake1.16
libtool
autoconf
mingw-w64-ucrt-x86_64-7zip
mingw-w64-ucrt-x86_64-meson
mingw-w64-ucrt-x86_64-pkgconf
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-icu
mingw-w64-ucrt-x86_64-curl
mingw-w64-ucrt-x86_64-bzip2
mingw-w64-ucrt-x86_64-readline
mingw-w64-ucrt-x86_64-imagemagick
mingw-w64-ucrt-x86_64-SDL2_mixer
mingw-w64-ucrt-x86_64-drmingw
mingw-w64-ucrt-x86_64-tolua
mingw-w64-ucrt-x86_64-gtk3
mingw-w64-ucrt-x86_64-gtk4
mingw-w64-ucrt-x86_64-qt6-base
mingw-w64-ucrt-x86_64-qt6-svg
mingw-w64-ucrt-x86_64-SDL2_image
mingw-w64-ucrt-x86_64-SDL2_ttf
mingw-w64-ucrt-x86_64-SDL2_gfx
mingw-w64-ucrt-x86_64-nsis
- name: build
shell: msys2 {0}
run: |
cd platforms/windows/installer_msys2
make -f Makefile.meson ci
os_x:
runs-on: macos-13
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
brew install \
llvm \
lua@5.4 \
autoconf \
automake \
gettext \
libtool \
pkg-config \
atk \
freetype \
gettext \
glib \
jpeg \
gtk+3 \
gtk4 \
icu4c \
pango \
sdl2_gfx \
sdl2_image \
sdl2_mixer \
sdl2_ttf \
qt@6 \
mysql-client \
postgresql \
unixodbc
- name: build
shell: bash
run: ./scripts/ci-build.sh os_x
mac-meson:
runs-on: macos-13
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
brew install \
pkg-config \
meson \
lua@5.4 \
jpeg \
gtk+3 \
gtk4 \
sdl2_mixer \
sdl2_gfx \
sdl2_image \
sdl2_ttf \
qt@6
- name: build
shell: bash
run: ./scripts/ci-build.sh mac-meson
normal:
runs-on: ubuntu-22.04
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
gettext \
libgtk-3-dev \
libgtk-4-dev \
libcurl4-openssl-dev \
libtool \
automake \
autoconf \
autotools-dev \
language-pack-en \
python3.10 \
liblzma-dev \
libicu-dev \
libsqlite3-dev \
qt6-base-dev \
libsdl2-mixer-dev \
libsdl2-gfx-dev \
libsdl2-image-dev \
libsdl2-ttf-dev \
libmysqlclient-dev
- name: build
shell: bash
run: ./scripts/ci-build.sh normal
dist:
runs-on: ubuntu-22.04
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
libtolua-dev \
zip \
gettext \
libcurl4-openssl-dev \
libtool \
automake \
autoconf \
autotools-dev \
python3.10 \
liblzma-dev \
libicu-dev \
libsqlite3-dev \
libgtk-3-dev \
qt6-base-dev \
libsdl2-mixer-dev \
libsdl2-gfx-dev \
libsdl2-image-dev \
libsdl2-ttf-dev \
libmysqlclient-dev
- name: build
shell: bash
run: ./scripts/ci-build.sh dist
meson:
runs-on: ubuntu-22.04
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
meson \
libtolua-dev \
gettext \
libgtk-3-dev \
libgtk-4-dev \
libcurl4-openssl-dev \
libtool \
automake \
autoconf \
autotools-dev \
language-pack-en \
python3.10 \
liblzma-dev \
libicu-dev \
libsqlite3-dev \
qt6-base-dev \
libsdl2-mixer-dev \
libsdl2-gfx-dev \
libsdl2-image-dev \
libsdl2-ttf-dev \
libmysqlclient-dev
- name: build
shell: bash
run: ./scripts/ci-build.sh meson
clang_debug:
runs-on: ubuntu-22.04
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
clang \
libtolua-dev \
liblua5.4-dev \
gettext \
libgtk-3-dev \
libgtk-4-dev \
libcurl4-openssl-dev \
libtool \
automake \
autoconf \
autotools-dev \
language-pack-en \
python3.10 \
liblzma-dev \
libicu-dev \
libsqlite3-dev \
qt6-base-dev \
libsdl2-mixer-dev \
libsdl2-gfx-dev \
libsdl2-image-dev \
libsdl2-ttf-dev \
libmysqlclient-dev
- name: build
shell: bash
run: ./scripts/ci-build.sh clang_debug
tcc:
runs-on: ubuntu-22.04
steps:
- name: check out Freeciv
uses: actions/checkout@v3.5.2
- name: install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
tcc \
gettext \
libgtk-3-dev \
libgtk-4-dev \
libcurl4-openssl-dev \
libtool \
automake \
autoconf \
autotools-dev \
language-pack-en \
python3.10 \
liblzma-dev \
libicu-dev \
libsqlite3-dev \
libmysqlclient-dev
- name: build
shell: bash
run: ./scripts/ci-build.sh tcc