Skip to content

Commit 89e62b0

Browse files
committed
Generate tarball on Ubuntu CI
1 parent 1028e82 commit 89e62b0

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
if: startsWith(matrix.config.os, 'ubuntu-')
132132
run: |
133133
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' }}
135135
136136
- name: Set compiler (Linux)
137137
if: matrix.config.os == 'ubuntu-22.04'
@@ -190,3 +190,28 @@ jobs:
190190
name: ${{ matrix.config.name }} - installer
191191
path: build/Aegisub-*.dmg
192192
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

Comments
 (0)