add debug flatpak ci job type

This commit is contained in:
DeaTh-G
2026-02-03 18:43:28 +01:00
parent 5e8695a157
commit cd7bd167a2
3 changed files with 53 additions and 2 deletions
+5 -2
View File
@@ -160,6 +160,9 @@ jobs:
build-flatpak:
name: Build Flatpak
runs-on: ubuntu-24.04
strategy:
matrix:
preset: ["flatpak-debug", "flatpak-release"]
env:
FLATPAK_ID: io.github.hedge_dev.unleashedrecomp
@@ -185,7 +188,7 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/ccache
key: ccache-${{ runner.os }}
key: ccache-${{ runner.os }}-${{ matrix.preset }}
- name: Prepare Project
run: cp ./private/* ./UnleashedRecompLib/private
@@ -198,7 +201,7 @@ jobs:
run: |
echo "commit_message=$(git log -1 --pretty=%s)" >> $GITHUB_ENV
export CCACHE_DIR=/tmp/ccache
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}-${{ matrix.preset }}.json
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
- name: Upload Artifact