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
687 stars 155 forks source link

Failed to run command on aarch64 #35

Closed rodrigorodrigues closed 3 years ago

rodrigorodrigues commented 3 years ago

Hi,

I'm trying to run a command on aarch64 architecture but got the error below and I'm not quite sure what that means, maybe some missing configuration? The issue happens on line 84(mvn command)

Build failed = https://github.com/rodrigorodrigues/spring-native-crud-mongodb/runs/2117047728?check_suite_focus=true

Github Actions file = https://github.com/rodrigorodrigues/spring-native-crud-mongodb/blob/master/.github/workflows/spring-native.yml#L65-L84

Error

qemu-aarch64-static: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory
Error: Process completed with exit code 255.

Thanks

uraimo commented 3 years ago

Hi, you are inside the aarch64 emulated environment only for the step that's using run-on-action, for everything that comes after you go back to the standard github amd64 env. In the workflow you linked, you have installed aarch64 java on the amd64 host, then run line 78 and 79 in the aarch64 env and then again launched maven in the amd64 environment.

What I recommend is to install java11-aarch64 manually in the setup section of run-on-arch and then launch mvn in the run section. For the last part you'll have to install docker in the setup section too, but I'm not really sure if it will work out of the box.