Closed gedw99 closed 9 months ago
I can do this so it works locally and in ci.
Thank you. I have try to build arm64 binary on my amd64 macos a few days ago. But some error occurs. It seems that the GO can't compile cross platform when CGO is enabled. I have no idea.
It does cross compile to windows and Mac for amd64 and arm64 for me on my m2 Mac. the make file does all this.
Have a try and let me know...
Thank you for help, I will have a try.
ah I spoke too soon :)
On Mac when I try to build windows it fails. I must have been tired.
Anyways, you can toggle as you please in the Makefile build target and CI will respect it.
Amy closing this as we have multi arch working, just no windows yet.
Reach out if you get stuck @heramerom
Modify the Make file to produce both amd64 and arm64 outputs.
There is also a way to produce a binary that is both amr64 and amd64.