lune-packaging/.github/workflows/appimage.yaml.old

59 lines
1.6 KiB
YAML
Raw Normal View History

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