Skip to content

Commit cd7bd16

Browse files
committed
add debug flatpak ci job type
1 parent 5e8695a commit cd7bd16

3 files changed

Lines changed: 53 additions & 2 deletions

File tree

.github/workflows/validate.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ jobs:
160160
build-flatpak:
161161
name: Build Flatpak
162162
runs-on: ubuntu-24.04
163+
strategy:
164+
matrix:
165+
preset: ["flatpak-debug", "flatpak-release"]
163166
env:
164167
FLATPAK_ID: io.github.hedge_dev.unleashedrecomp
165168

@@ -185,7 +188,7 @@ jobs:
185188
uses: actions/cache@v4
186189
with:
187190
path: /tmp/ccache
188-
key: ccache-${{ runner.os }}
191+
key: ccache-${{ runner.os }}-${{ matrix.preset }}
189192

190193
- name: Prepare Project
191194
run: cp ./private/* ./UnleashedRecompLib/private
@@ -198,7 +201,7 @@ jobs:
198201
run: |
199202
echo "commit_message=$(git log -1 --pretty=%s)" >> $GITHUB_ENV
200203
export CCACHE_DIR=/tmp/ccache
201-
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
204+
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}-${{ matrix.preset }}.json
202205
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
203206
204207
- name: Upload Artifact
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "io.github.hedge_dev.unleashedrecomp",
3+
"runtime": "org.freedesktop.Platform",
4+
"runtime-version": "24.08",
5+
"sdk": "org.freedesktop.Sdk",
6+
"sdk-extensions" : [ "org.freedesktop.Sdk.Extension.llvm18" ],
7+
"finish-args": [
8+
"--share=network",
9+
"--socket=wayland",
10+
"--socket=fallback-x11",
11+
"--socket=pulseaudio",
12+
"--device=all",
13+
"--filesystem=host",
14+
"--filesystem=/media",
15+
"--filesystem=/run/media",
16+
"--filesystem=/mnt"
17+
],
18+
"modules": [
19+
{
20+
"name": "UnleashedRecomp",
21+
"buildsystem": "simple",
22+
"build-commands": [
23+
"cmake --preset linux-debug -DUNLEASHED_RECOMP_FLATPAK=ON -DSDL2MIXER_VORBIS=VORBISFILE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache",
24+
"cmake --build out/build/linux-debug --target UnleashedRecomp",
25+
"mkdir -p /app/bin",
26+
"cp out/build/linux-debug/UnleashedRecomp/UnleashedRecomp /app/bin/UnleashedRecomp",
27+
"install -Dm644 UnleashedRecompResources/images/game_icon.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
28+
"install -Dm644 flatpak/io.github.hedge_dev.unleashedrecomp.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
29+
"install -Dm644 flatpak/io.github.hedge_dev.unleashedrecomp.desktop /app/share/applications/${FLATPAK_ID}.desktop"
30+
],
31+
"sources": [
32+
{
33+
"type": "dir",
34+
"path": "../"
35+
}
36+
],
37+
"build-options": {
38+
"no-debuginfo": true,
39+
"strip": false,
40+
"append-path": "/usr/lib/sdk/llvm18/bin",
41+
"prepend-ld-library-path": "/usr/lib/sdk/llvm18/lib",
42+
"build-args": [
43+
"--share=network"
44+
]
45+
}
46+
}
47+
]
48+
}

flatpak/io.github.hedge_dev.unleashedrecomp.json renamed to flatpak/io.github.hedge_dev.unleashedrecomp-flatpak-release.json

File renamed without changes.

0 commit comments

Comments
 (0)