diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index e86788ac..3b30e109 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -62,3 +62,28 @@ jobs: with: name: artifact-${{ matrix.targetos }}-${{ matrix.targetarch }} path: artifacts/* + flatpak: + name: "Flatpak" + runs-on: ubuntu-latest + strategy: + matrix: + include: + - app: su.xash.Engine.Compat.i386 + container: + image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08 + options: --privileged + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + UPLOADTOOL_ISPRERELEASE: true + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Build flatpak (Compat.i386) + uses: FWGS/flatpak-github-actions/flatpak-builder@v5 + with: + bundle: ${{ matrix.app }}.flatpak + manifest-path: scripts/flatpak/${{ matrix.app }}.yml + - name: Upload engine (prereleases) + run: bash scripts/continious_upload.sh ${{ matrix.app }}.flatpak