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

46 lines
1.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
- 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
uses: lalten/run-on-arch-action@amd64-support
id: buildimg
with:
arch: ${{ matrix.arch }}
2023-08-03 15:27:59 +01:00
distro: none
base_image: ubuntu:jammy
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 && \
./pkg2appimage/pkg2appimage lune.yml && \
mv ./lune/lune-$(uname -m).AppImage ./lune-$LUNE_VERSION-$(uname -m).AppImage
2023-08-03 13:50:47 +01:00