ci: try multiarch flatpak builder

This commit is contained in:
Mitchell Hashimoto
2023-02-27 14:38:06 -08:00
parent 533cfbc9b8
commit dcff7c2998

View File

@ -9,14 +9,28 @@ jobs:
container: container:
image: bilelmoussaoui/flatpak-github-actions:gnome-43 image: bilelmoussaoui/flatpak-github-actions:gnome-43
options: --privileged options: --privileged
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
# Docker is required by the docker/setup-qemu-action which enables emulation
- name: Install deps
run: |
dnf -y install docker
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v4 - uses: flatpak/flatpak-github-actions/flatpak-builder@v4
with: with:
bundle: ghostty.flatpak bundle: ghostty.flatpak
manifest-path: com.mitchellh.ghostty.yml manifest-path: com.mitchellh.ghostty.yml
branch: tip branch: tip
cache-key: flatpak-builder-${{ github.sha }}-v1 cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }}-v1
arch: ${{ matrix.arch }}