Skip to content

ci: use arm64 images #212

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

Merged
merged 2 commits into from
Apr 19, 2025
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
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,34 @@ jobs:
architecture: ucrt-x86_64
shell: 'msys2 {0}'

- name: Linux (ARM64)
os: ubuntu
os-version: 24.04-arm
use-clang: false
arm: true
shell: bash

- name: Linux
os: ubuntu
os-version: 24.04
use-clang: false
arm: false
shell: bash

- name: Linux Clang (libstdc++)
os: ubuntu
os-version: 24.04
use-clang: true
use-clang_stdlib: false
arm: false
shell: bash

- name: Linux Clang (libc++)
os: ubuntu
os-version: 24.04
use-clang: true
use-clang_stdlib: true
arm: false
shell: bash

- name: MacOS
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,24 @@ on:
jobs:
flatpak:
name: Flatpak build (${{ matrix.config.arch }})
runs-on: ubuntu-24.04
runs-on: ubuntu-${{ matrix.config.os-version }}
strategy:
matrix:
config:
- arch: x86_64
use_qemu: false
os-version: 24.04

- arch: aarch64
use_qemu: true
qemu_arch: arm64
os-version: 24.04-arm
# Don't fail the whole workflow if one architecture fails
fail-fast: false
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08
image: ghcr.io/flathub-infra/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@v3
with:
platforms: ${{ matrix.config.qemu_arch }}

- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@9386d85446c0f8c6b93dea3774002af2abcac3d5
with:
bundle: oopetris.flatpak
manifest-path: io.github.openbrickprotocolfoundation.oopetris.yml
Expand Down
Loading