How to test aarch64 templates / images on GitHub Actions #3934
-
I am having trouble finding a reliable configuration on GitHub Actions for running Has anyone found a solution that works for Open Source (i.e. unpaid) project on GitHub? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Details on my use case: I am creating a NixOS Lima image and template (See nixos-lima) and have written GitHub Actions that do the following:
The current GHA workflow file is here: https://github.com/nixos-lima/nixos-lima/blob/master/.github/workflows/build-image.yml The matrix for the
So the matrix is 2 x 2 ( os x architecture) but 3 of 4 boxes are excluded and only the I have another workflow in a "sample" repo that successfully runs |
Beta Was this translation helpful? Give feedback.
-
I decided to use Nix to install Lima and QEMU to get a newer version of QEMU than is available via the default Ubuntu apt repository. (The current version in nixpkgs-unstable is 10.0.3) WIth this change (and a few others) I am now able to test Update: With two more changes I now have the full matrix
|
Beta Was this translation helpful? Give feedback.
I decided to use Nix to install Lima and QEMU to get a newer version of QEMU than is available via the default Ubuntu apt repository. (The current version in nixpkgs-unstable is 10.0.3)
WIth this change (and a few others) I am now able to test
aarch64
images on GitHub. (See https://github.com/nixos-lima/nixos-lima/actions/runs/17338631721) Currentlyaarch64
images are only running in emulation on theubuntu-24.04
runner (x86-64) and the currentmacos-15
andubuntu-24.04-arm
runners don't allow nested virtualization. (I may try to get emulatedaarch64
to run on those instances, but my main need is met for now)Update:
With two more changes I now have the full matrix
[ubuntu-24.04, ubuntu-2…