@@ -131,7 +131,7 @@ jobs:
131
131
if : startsWith(matrix.config.os, 'ubuntu-')
132
132
run : |
133
133
sudo apt-get update
134
- sudo apt-get install ninja-build build-essential libx11-dev libfreetype6-dev pkg-config libfontconfig1-dev libass-dev libasound2-dev libffms2-dev intltool libboost-all-dev libhunspell-dev libcurl4-openssl-dev libuchardet-dev ${{ matrix.config.os == 'ubuntu-22.04' && 'libwxgtk3.0-gtk3-dev' || 'libwxgtk3.2-dev' }}
134
+ sudo apt-get install ninja-build build-essential libx11-dev libfreetype6-dev pkg-config libfontconfig1-dev libass-dev libasound2-dev libffms2-dev intltool libboost-all-dev libhunspell-dev libcurl4-openssl-dev libuchardet-dev libgtest-dev libgmock-dev ${{ matrix.config.os == 'ubuntu-22.04' && 'libwxgtk3.0-gtk3-dev' || 'libwxgtk3.2-dev' }}
135
135
136
136
- name : Set compiler (Linux)
137
137
if : matrix.config.os == 'ubuntu-22.04'
@@ -190,3 +190,28 @@ jobs:
190
190
name : ${{ matrix.config.name }} - installer
191
191
path : build/Aegisub-*.dmg
192
192
if-no-files-found : error
193
+
194
+ # Tarball
195
+ - name : Generate tarball
196
+ if : matrix.config.os == 'ubuntu-24.04' && matrix.config.buildtype == 'release'
197
+ run : |
198
+ set -e
199
+
200
+ # Work around https://github.com/mesonbuild/meson/issues/14005
201
+ rm -rf subprojects/luajit/.git
202
+
203
+ meson dist --include-subprojects -C build
204
+
205
+ # Make sure the subprojects we need are included
206
+ mkdir distcheck
207
+ tar -xJf build/meson-dist/*.tar.xz -C distcheck/
208
+ test -e distcheck/*/subprojects/luabins/meson.build
209
+ test -e distcheck/*/subprojects/luajit/meson.build
210
+
211
+ - name : Upload artifacts - tarball
212
+ uses : actions/upload-artifact@v4
213
+ if : matrix.config.os == 'ubuntu-24.04' && matrix.config.buildtype == 'release'
214
+ with :
215
+ name : Source Tarball
216
+ path : build/meson-dist/*.tar.xz
217
+ if-no-files-found : error
0 commit comments