2023-08-03 18:20:47 +05:30
|
|
|
name: Build Lune AppImage
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-08-03 18:35:05 +05:30
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch: ["x86_64", "aarch64"]
|
|
|
|
|
2023-08-03 18:20:47 +05:30
|
|
|
name: Build the AppImage
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-08-03 18:50:13 +05:30
|
|
|
- name: Runner info
|
|
|
|
run: uname -ar
|
|
|
|
|
2023-08-03 18:20:47 +05:30
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
2023-08-03 20:16:51 +05:30
|
|
|
- name: AppImage routine
|
2023-08-03 18:35:05 +05:30
|
|
|
uses: lalten/run-on-arch-action@amd64-support
|
|
|
|
id: buildimg
|
|
|
|
with:
|
|
|
|
arch: ${{ matrix.arch }}
|
2023-08-03 20:00:42 +05:30
|
|
|
distro: buster
|
2023-08-03 18:39:37 +05:30
|
|
|
dockerRunArgs: |
|
2023-08-03 20:14:34 +05:30
|
|
|
--volume "./package/appimage:/build" --privileged
|
2023-08-03 20:02:46 +05:30
|
|
|
run: |
|
2023-08-03 20:16:51 +05:30
|
|
|
export LUNE_VERSION=0.7.5
|
2023-08-04 17:42:07 +05:30
|
|
|
export SYSTEM_ARCH=${{ matrix.arch }}
|
2023-08-04 18:17:20 +05:30
|
|
|
|
2023-08-03 21:09:06 +05:30
|
|
|
|
2023-08-04 17:46:41 +05:30
|
|
|
apt update
|
2023-08-03 20:05:32 +05:30
|
|
|
apt install imagemagick file desktop-file-utils curl wget dpkg-dev unzip fuse libfuse2 -y
|
2023-08-04 18:33:47 +05:30
|
|
|
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$SYSTEM_ARCH.AppImage -O /usr/bin/appimagetool
|
2023-08-04 18:17:20 +05:30
|
|
|
|
2023-08-04 18:20:21 +05:30
|
|
|
appimagetool() {
|
2023-08-04 18:17:20 +05:30
|
|
|
/usr/bin/appimagetool "$@"
|
2023-08-04 18:20:21 +05:30
|
|
|
}
|
2023-08-04 18:17:20 +05:30
|
|
|
|
2023-08-04 18:22:37 +05:30
|
|
|
export -f appimagetool
|
2023-08-04 18:33:47 +05:30
|
|
|
export appimagetool=/usr/bin/appimagetool
|
2023-08-04 17:45:10 +05:30
|
|
|
|
2023-08-03 20:02:46 +05:30
|
|
|
cd /build
|
|
|
|
./pkg2appimage/pkg2appimage lune.yml
|
2023-08-03 20:20:51 +05:30
|
|
|
mv ./out/lune-*.AppImage ./out/lune-$LUNE_VERSION.glibc2.34-$(uname -m).AppImage
|
2023-08-03 20:29:23 +05:30
|
|
|
|
|
|
|
- name: Upload generated images
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: lune-0.7.5.glibc2.34-${{ matrix.arch }}.AppImage
|
|
|
|
path: ./out/lune-0.7.5.glibc2.34-${{ matrix.arch }}.AppImage
|