lunarmodules / luacheck

A tool for linting and static analysis of Lua code.
https://luacheck.readthedocs.io
MIT License
353 stars 53 forks source link

Provide docker image for arm64v8 (Apple Silicon) #80

Open jottr opened 2 years ago

jottr commented 2 years ago
$ uname -m 
arm64

$ docker run -i --rm ghcr.io/lunarmodules/luacheck
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Please add arm64 to the build matrix and publish the image to ghcr. Thanks!

alerque commented 2 years ago

I would be glad to support arm64 but am currently traveling and don't have time to look into how. Does the GitHub Actions runner we are using to build docker images have either an arch64 host option or support cross-compiling? A PR that adds the right build commands for this if supported would be welcome.

jottr commented 2 years ago

arm64 can be targeted by using qemu. There is a handy Github Action that does the heavy lifting.
Alternatively, one could simply use the docker-setup-qemu -Action.

I don't have time to create a PR right now either. But might have some in a fortnight or so.