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:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: sudo apt install imagemagick file desktop-file-utils curl wget dpkg-dev unzip fuse libfuse2
- name: Set working directory
2023-08-03 14:11:57 +01:00
run: cd /home/runner/work/lune/lune && 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 }}
distro: ubuntu_latest
dockerRunArgs: |
--volume "${PWD}:/build"
run: cd /build && \
./pkg2appimage/pkg2appimage lune.yml && \
mv ./lune/lune-$(uname -m).AppImage ./lune-$LUNE_VERSION-$(uname -m).AppImage
2023-08-03 13:50:47 +01:00