ipfs / distributions

Legacy dist.ipfs.tech website and artifact build tools. Currently only used for notarizing builds of Kubo and IPFS Cluster.
https://dist.ipfs.tech
MIT License
48 stars 32 forks source link

Support CGO cross building in docker container #546

Open Stebalien opened 2 years ago

Stebalien commented 2 years ago

Now that we're using a docker container for builds, it's a lot easier to setup a cross compiler to build binaries with CGO support for macos & 32bit linux.

We can probably just a docker container from https://github.com/techknowlogick/xgo and I have a feeling it'll "just work".

aschmahmann commented 2 years ago

Some motivation for why being able to compile with CGO across our supported platforms (Linux, OS X, Windows) is useful is that it enables kubo (formerly go-ipfs) to be able to support using the variety of code out there that's not written in Go but is exposed via FFI. Not every binary in this repo should need to support CGO building but it should be available.

Some examples I can think of: