Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use aarch64 runner for Flatpak #1149

Merged
merged 5 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading