Skip to content

Commit

Permalink
Merge pull request #1149 from darkdragon-001/test-aarch64-runner
Browse files Browse the repository at this point in the history
Use aarch64 runner for Flatpak
  • Loading branch information
nanu-c committed Feb 22, 2024
2 parents d9342bc + 34cfe05 commit f4e4fdf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,35 +366,29 @@ jobs:
retention-days: 1

# See https://github.com/flatpak/flatpak-github-actionsfor examples
# It also contains instructions on how to compile for other architectures via QEMU
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-45
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
variant:
- arch: x86_64
runner: ubuntu-latest
- arch: aarch64
runner: ARM64
# Don't fail the whole workflow if one architecture fails
fail-fast: false
runs-on: ${{ matrix.variant.runner }}
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-45
options: --privileged
steps:
- uses: actions/checkout@v4
# Docker is required by the docker/setup-qemu-action which enables emulation
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
with:
bundle: axolotl.flatpak
manifest-path: flatpak/org.nanuc.Axolotl.yml
branch: ${{ github.head_ref || github.ref_name }}
arch: ${{ matrix.arch }}
arch: ${{ matrix.variant.arch }}
build-bundle: true
upload-artifact: true
1 change: 0 additions & 1 deletion flatpak/flatpak-builder-tools
Submodule flatpak-builder-tools deleted from 5880ad

0 comments on commit f4e4fdf

Please sign in to comment.