Skip to content

Commit d81835b

Browse files
committed
test workflow
1 parent 8c76c69 commit d81835b

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/appimage.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build AppImage
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: ghcr.io/pkgforge-dev/archlinux:latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Prepare anylinux container
16+
uses: pkgforge-dev/anylinux-setup-action@v2
17+
18+
- name: Install build dependencies
19+
run: |
20+
# python-gobject + python-pycairo are required for the GTK
21+
# splash screen. Without pycairo the splash subprocess silently
22+
# exits 1 and the user sees the main window appear with no
23+
# splash animation. zenity is the file-picker fallback.
24+
pacman -Syu --noconfirm \
25+
python-gobject \
26+
python-pycairo \
27+
python-libloot \
28+
python-customtkinter \
29+
tk \
30+
zenity \
31+
libarchive
32+
33+
- name: Build AppImage
34+
env:
35+
# CI containers run as root; ANYLINUX_LIB needs glibc dev
36+
# headers (already present in archlinux:latest unlike SteamOS).
37+
ANYLINUX_LIB: '1'
38+
run: bash src/appimage/make-appimage.sh
39+
40+
- name: Upload artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: AmethystModManager-AppImage
44+
path: src/appimage/dist/*.AppImage
45+
if-no-files-found: error
46+
47+
- name: Attach to release
48+
if: startsWith(github.ref, 'refs/tags/v')
49+
uses: softprops/action-gh-release@v2
50+
with:
51+
files: src/appimage/dist/*.AppImage

0 commit comments

Comments
 (0)