Build flatpak package #29
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build audiveris 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 jpackage | |
| - name: upload flathub archive | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: flathub-data | |
| path: flatpak/flathub/ | |
| flatpak: | |
| name: "Flatpak" | |
| 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 archive | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: flathub-data | |
| - 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 | |
| - 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 }} |