From a6b516be15f53493ead22dcb22f574eb7c95842b Mon Sep 17 00:00:00 2001 From: Florian Piesche Date: Fri, 30 Aug 2024 01:47:13 +0100 Subject: [PATCH] Fix flatpak build step --- .github/workflows/c-cpp.yml | 41 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index ed71837a4..4548153e7 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -78,6 +78,27 @@ jobs: path: bin/ retention-days: 0 + build-flatpak-bundle: + name: "Build flatpak bundle" + runs-on: ubuntu-latest + needs: [build-i686-linux] + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-44 + options: --privileged + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: pd-i686-linux + path: bin/ + - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 + with: + build-bundle: true + bundle: io.github.fgsfdsfgs.perfect_dark.flatpak + manifest-path: dist/linux/io.github.fgsfdsfgs.perfect_dark.yml + cache-key: flatpak-builder-${{ github.sha }} + upload-artifact: true + publish-latest-build: runs-on: ubuntu-latest if: github.ref == 'refs/heads/port' @@ -101,23 +122,3 @@ jobs: git tag --force ci-dev-build port git push --force origin ci-dev-build gh release upload --clobber ci-dev-build ci-release/* - - build-flatpak-bundle: - name: "Build flatpak bundle" - runs-on: ubuntu-latest - container: - image: bilelmoussaoui/flatpak-github-actions:gnome-44 - options: --privileged - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: pd-i686-linux - path: bin/ - - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 - with: - build-bundle: true - bundle: io.github.fgsfdsfgs.perfect_dark.flatpak - manifest-path: dist/linux/io.github.fgsfdsfgs.perfect_dark.yml - cache-key: flatpak-builder-${{ github.sha }} - upload-artifact: true