Skip to content

Commit

Permalink
ci: add arm64 flatpak build + add upload to beta repository in case o…
Browse files Browse the repository at this point in the history
…f a merge
  • Loading branch information
Totto16 committed Oct 30, 2024
1 parent 050d9e1 commit 0431302
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,49 @@ on:

jobs:
flatpak:
name: 'Flatpak build'
name: Flatpak build (${{ matrix.config.arch }})
runs-on: ubuntu-24.04
strategy:
matrix:
config:
- arch: x86_64
use_qemu: false

- arch: aarch64
use_qemu: true
qemu_arch: arm64
# Don't fail the whole workflow if one architecture fails
fail-fast: false
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08
options: --privileged
steps:
- uses: actions/checkout@v4

- name: Install deps
if: ${{ matrix.config.use_qemu == true }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.config.use_qemu == true }}
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ matrix.config.qemu_arch }}

- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: oopetris.flatpak
manifest-path: io.github.openbrickprotocolfoundation.oopetris.yml
verbose: ${{ runner.debug == '1' && 'true' || 'false' }}
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.config.arch }}

- uses: flatpak/flatpak-github-actions/flat-manager@v4
name: 'Deploy'
if: github.event_name != 'pull_request'
with:
repository: beta
flat-manager-url: http://flat-man.oopetris.totto.lt
token: ${{ secrets.FLAT_MANAGER_TOKEN }}

0 comments on commit 0431302

Please sign in to comment.