uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
677 stars 149 forks source link

Try to generate NixOS with run-on-arch-action alpine_latest leads to error #90

Open Chris2011 opened 1 year ago

Chris2011 commented 1 year ago

I would like to build an NixOS image, with github actions for my RaspberryPi. When I use the code, that I got from here: https://github.com/Robertof/nixos-docker-sd-image-builder everything is fine and after somehow 25min it ends successfully (code 0): https://github.com/Chris2011/nixos-docker-image-builder/actions/runs/2952094775/jobs/4718626365#step:4:2234

The script checks the architecture, if it is x86, it will use QEMU to emulates it. This is exactly what happens. But I guess it will be much faster when I try native ARM image so I found your repo and I updated my workflows file: https://github.com/Chris2011/nixos-docker-image-builder/blob/dev/.github/workflows/build-nixos-arm.yml

Now, when I run the action on your image with alpine_latest aarch64 it will not run QEMU because it is native aarch64 which is what I want, the problem here is, after ~8min it is still green it ends "successfully (code 1)" but with this error: https://github.com/Chris2011/nixos-docker-image-builder/actions/runs/3039913885/jobs/4895382860#step:3:1580

So my feeling is, that there is smth misbehavior while using your image to build it.

Chris2011 commented 1 year ago

@uraimo can I help you with more info, just tell me, what you need from me. Using your latest verison 2.3.0 will still fail with the same error.