Skip to content

Build flatpak package #38

Build flatpak package

Build flatpak package #38

Workflow file for this run

name: Build flatpak package
# execute this workflow on every push
#on:
# - push
on:
- workflow_dispatch
permissions:
contents: read
jobs:
java-dependencies:
name: "Get java dependencies"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Retrieve Gradle properties
uses: BrycensRanch/read-properties-action@v1
id: all
with:
file: gradle.properties
all: true
- name: Setup Java ${{ steps.all.outputs.theMinJavaVersion }}
uses: actions/setup-java@v3
with:
java-version: ${{ steps.all.outputs.theMinJavaVersion }}
distribution: zulu
- name: Populate flatpak/flathub
uses: gradle/[email protected]
with:
arguments: --info initFlathub
- name: upload flathub content
uses: actions/upload-artifact@v4
with:
name: flathub-content
path: flatpak/flathub/
flatpak:
name: "Flatpak"
needs: java-dependencies
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-47
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps:
- name: download flathub content
uses: actions/download-artifact@v4
with:
name: flathub-content
- name: Install docker
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Build flatpak ${{ github.sha }}
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
build-bundle: true
bundle: org.audiveris.audiveris.flatpak
manifest-path: org.audiveris.audiveris.yml
cache-key: audiveris-flatpak-${{ github.sha }}
arch: ${{ matrix.arch }}