From 185e52410c20455f408e4ca9452e598ba0b0a5e2 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister <13hannes11@users.noreply.github.com> Date: Tue, 16 Jul 2024 07:57:59 +0200 Subject: [PATCH] Add building of all flatpak manifest targets (closes #48) --- .github/workflows/pre-release.yml | 52 ++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index cbba694..bc041c4 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -7,8 +7,8 @@ on: name: build-and-prerelease jobs: - flatpak: - name: Flatpak-prerelease + flatpak-release-target: + name: "Test build of flatpak release target" runs-on: ubuntu-latest container: image: bilelmoussaoui/flatpak-github-actions:gnome-46 @@ -19,7 +19,51 @@ jobs: lfs: true - uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6.3 with: - bundle: toolboxtuner.flatpak + bundle: toolboxtuner-release.flatpak + manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.json + run-tests: true + cache-key: flatpak-builder-${{ github.sha }} + upload-artifact: false + - uses: actions/upload-artifact@v4 + with: + name: flatpak + path: | + *.flatpak + flatpak-screenshot-target: + name: "Test build of screenshot target" + runs-on: ubuntu-latest + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-46 + options: --privileged + steps: + - uses: actions/checkout@v4 + with: + lfs: true + - uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6.3 + with: + bundle: toolboxtuner-screenshot.flatpak + manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.Screenshot.json + run-tests: true + cache-key: flatpak-builder-${{ github.sha }} + upload-artifact: false + - uses: actions/upload-artifact@v4 + with: + name: flatpak + path: | + *.flatpak + flatpak-dev-target: + name: "Build flatpak dev/pre-release target" + runs-on: ubuntu-latest + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-46 + options: --privileged + steps: + - uses: actions/checkout@v4 + with: + lfs: true + - uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6.3 + with: + bundle: toolboxtuner-dev.flatpak manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.Devel.json run-tests: true cache-key: flatpak-builder-${{ github.sha }} @@ -61,7 +105,7 @@ jobs: automatic_release_tag: dev title: 'Latest Development Build' files: | - **/*.flatpak + **/*-dev.flatpak **/*.tar.gz **/*.sha256sum