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

43 lines
1 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:40:34 +01:00
# - name: Set working directory
# run: cd ./package/appimage && export LUNE_VERSION=0.7.5
2023-08-03 13:50:47 +01:00
- name: Build AppImage
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:40:34 +01:00
--volume "./package/appimage:/build"
2023-08-03 15:32:46 +01:00
run: |
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-03 15:32:46 +01:00
cd /build
./pkg2appimage/pkg2appimage lune.yml
mv ./lune/lune-$(uname -m).AppImage ./lune-$LUNE_VERSION-$(uname -m).AppImage