Skip to content

Commit

Permalink
Provide aarch64 Actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Feb 13, 2024
1 parent 427c269 commit 03609ec
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,29 @@ jobs:
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-45
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4

- 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
- name: Flatpak Builder
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.3
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: page.kramo.Hyperplane.Devel.flatpak
manifest-path: page.kramo.Hyperplane.Devel.json
repository-url: https://nightly.gnome.org/gnome-nightly.flatpakrepo
repository-name: gnome-nightly

arch: ${{ matrix.arch }}
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
- name: Publish release
uses: softprops/[email protected]
with:
files: page.kramo.Hyperplane.Devel-x86_64/page.kramo.Hyperplane.Devel.flatpak
files: |
page.kramo.Hyperplane.Devel-x86_64/page.kramo.Hyperplane.Devel.flatpak
page.kramo.Hyperplane.Devel-aarch64/page.kramo.Hyperplane.Devel.flatpak
fail_on_unmatched_files: true
tag_name: ${{ steps.get_tag_name.outputs.tag_name }}
body_path: release_notes
2 changes: 1 addition & 1 deletion hyperplane/utils/thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def generate_thumbnail(
return

try:
# Fallback to GdkPixbuf
# Fall back to GdkPixbuf
thumbnail = GdkPixbuf.Pixbuf.new_from_file_at_size(
str(get_gfile_path(gfile)), 256, 256
)
Expand Down

0 comments on commit 03609ec

Please sign in to comment.