2023-08-03 13:50:47 +01:00
|
|
|
name: Build Lune AppImage
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-08-03 14:05:05 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
- name: Set working directory
|
2023-08-03 14:18:04 +01:00
|
|
|
run: cd ./package/appimage && export LUNE_VERSION=0.7.5
|
2023-08-03 13:50:47 +01:00
|
|
|
|
|
|
|
- name: Build AppImage
|
2023-08-03 14:05:05 +01:00
|
|
|
uses: lalten/run-on-arch-action@amd64-support
|
|
|
|
id: buildimg
|
|
|
|
with:
|
|
|
|
arch: ${{ matrix.arch }}
|
2023-08-03 15:30:42 +01:00
|
|
|
distro: buster
|
2023-08-03 14:09:37 +01:00
|
|
|
dockerRunArgs: |
|
|
|
|
--volume "${PWD}:/build"
|
2023-08-03 14:23:49 +01:00
|
|
|
run: apt update && \
|
2023-08-03 15:21:37 +01:00
|
|
|
apt-get install imagemagick file desktop-file-utils curl wget dpkg-dev unzip fuse libfuse2 && \
|
2023-08-03 14:15:45 +01:00
|
|
|
cd /build && \
|
2023-08-03 14:09:37 +01:00
|
|
|
./pkg2appimage/pkg2appimage lune.yml && \
|
|
|
|
mv ./lune/lune-$(uname -m).AppImage ./lune-$LUNE_VERSION-$(uname -m).AppImage
|
2023-08-03 13:50:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|