Skip to content

Commit 0431302

Browse files
committed
ci: add arm64 flatpak build + add upload to beta repository in case of a merge
1 parent 050d9e1 commit 0431302

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/flatpak.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,49 @@ on:
1010

1111
jobs:
1212
flatpak:
13-
name: 'Flatpak build'
13+
name: Flatpak build (${{ matrix.config.arch }})
1414
runs-on: ubuntu-24.04
15+
strategy:
16+
matrix:
17+
config:
18+
- arch: x86_64
19+
use_qemu: false
20+
21+
- arch: aarch64
22+
use_qemu: true
23+
qemu_arch: arm64
24+
# Don't fail the whole workflow if one architecture fails
25+
fail-fast: false
1526
container:
1627
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08
1728
options: --privileged
1829
steps:
1930
- uses: actions/checkout@v4
31+
32+
- name: Install deps
33+
if: ${{ matrix.config.use_qemu == true }}
34+
run: |
35+
dnf -y install docker
36+
37+
- name: Set up QEMU
38+
if: ${{ matrix.config.use_qemu == true }}
39+
id: qemu
40+
uses: docker/setup-qemu-action@v2
41+
with:
42+
platforms: ${{ matrix.config.qemu_arch }}
43+
2044
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
2145
with:
2246
bundle: oopetris.flatpak
2347
manifest-path: io.github.openbrickprotocolfoundation.oopetris.yml
2448
verbose: ${{ runner.debug == '1' && 'true' || 'false' }}
49+
cache-key: flatpak-builder-${{ github.sha }}
50+
arch: ${{ matrix.config.arch }}
51+
52+
- uses: flatpak/flatpak-github-actions/flat-manager@v4
53+
name: 'Deploy'
54+
if: github.event_name != 'pull_request'
55+
with:
56+
repository: beta
57+
flat-manager-url: http://flat-man.oopetris.totto.lt
58+
token: ${{ secrets.FLAT_MANAGER_TOKEN }}

0 commit comments

Comments
 (0)