Skip to content

Commit e71f2b0

Browse files
committed
Add Flatpak CI
1 parent f3d2db2 commit e71f2b0

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ubuntu-gcc.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,46 @@ jobs:
4242
- name: Build
4343
shell: bash
4444
run: cmake --build ./build --config ${{env.BUILD_TYPE}}
45+
46+
flatpak:
47+
name: Build Flatpak
48+
runs-on: ${{ matrix.runner }}
49+
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
runner:
54+
- ubuntu-latest
55+
- ubuntu-24.04-arm
56+
57+
steps:
58+
- name: Install Flatpak
59+
run: |
60+
sudo apt-get update -qq && \
61+
sudo apt-get install -y flatpak flatpak-builder && \
62+
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \
63+
flatpak install --user -y org.freedesktop.Sdk//24.08 org.freedesktop.Platform//24.08 org.flatpak.Builder
64+
65+
- uses: actions/checkout@v4
66+
with:
67+
repository: flathub/io.github.theforceengine.tfe
68+
ref: master
69+
submodules: true
70+
71+
- name: Patch Flatpak manifest to build current commit and repo
72+
run: |
73+
sed -i "s!luciusDXL/TheForceEngine!${{ github.repository }}!" io.github.theforceengine.tfe.yml && \
74+
sed -i "s/tag: v.*/commit: ${{ github.sha }}/" io.github.theforceengine.tfe.yml
75+
echo "::group::Patched manifest"
76+
cat io.github.theforceengine.tfe.yml
77+
echo "::endgroup::"
78+
79+
- name: Build Flatpak
80+
run: |
81+
flatpak-builder --install-deps-from=flathub \
82+
build --force-clean --install --user io.github.theforceengine.tfe.yml
83+
84+
- name: Verify build
85+
run: |
86+
flatpak run --command=flatpak-builder-lint org.flatpak.Builder \
87+
--exceptions builddir build

0 commit comments

Comments
 (0)