Also build for aarch64 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
# branches: [main] | |
pull_request: | |
name: CI | |
jobs: | |
flatpak: | |
name: "Flatpak (${{ matrix.arch }})" | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
# Don't cancel all builds if one fails | |
fail-fast: false | |
container: | |
image: bilelmoussaoui/flatpak-github-actions:gnome-47 | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Set up QEMU for non-native architectures | |
- name: Set up QEMU | |
if: matrix.arch != 'x86_64' | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: ${{ matrix.arch }} | |
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | |
with: | |
bundle: aardvark-${{ matrix.arch }}.flatpak | |
manifest-path: org.p2panda.aardvark.json | |
cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }} | |
arch: ${{ matrix.arch }} | |
# The above job will build the application as flatpaks for multiple architectures | |
# and publish them as artifacts. To test locally, download the appropriate zip | |
# artifact for your architecture, then: | |
# unzip aardvark-<arch>.zip | |
# flatpak --user install aardvark-<arch>.flatpak | |
# flatpak run org.p2panda.aardvark |