-
Notifications
You must be signed in to change notification settings - Fork 42
45 lines (37 loc) · 1.48 KB
/
appimage.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
name: AppImage
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
name: build AppImage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/build
- name: Install Packages
run: |
sudo apt-get update -qq
sudo apt-get install -y wget libluajit-5.1-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libgtk-3-dev
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWITH_LUAJIT=1 -DAPPIMAGE=1 -DWITH_GTK3=1
- name: Build
run: cmake --build ./build --config Release
- name: Create Artifact
run: |
sudo apt-get install -y libfuse2
DESTDIR=appimage cmake --install ./build
tar -xvf contrib/appimage.tar.gz --strip-components=1 -C appimage
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appdir appimage
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x ./appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage appimage/
- name: Publish Artifact
uses: actions/upload-artifact@v3
with:
name: AppImage
path: INSTEAD-x86_64.AppImage