bruvzg / gdsdecomp

Godot reverse engineering tools
MIT License
1.42k stars 138 forks source link

Fix MacOS CI by adding `universal` template export #68

Closed nikitalita closed 1 year ago

nikitalita commented 1 year ago

Godot project exports for MacOS now require a universal export template in order to run natively on ARM macs. I am not sure how to do this with github actions, and it doesn't seem like Godot's github CI does this? @bruvzg , do you know how to compile an arm binary on Github actions?

bruvzg commented 1 year ago

ARM binary can be compiled by adding arch=arm64 to the build command, to make universal one, build both x86_64 and ARM binaries and combine them using lipo -create x86_binary_name arm_binary_name -output universal_binary_name command.

nikitalita commented 1 year ago

Does Github's CI support this out of the box, or do I have to add packages to support cross-compiling?

bruvzg commented 1 year ago

It should be able to build it out of the box.

nikitalita commented 1 year ago

That did it, thanks! Fixed in https://github.com/bruvzg/gdsdecomp/commit/95a8274d2ed38edf462e6cd68593ff271c7b1a9e