Skip to content

zk-org/zk-xcompile

Repository files navigation

Cross-compiling zk with Docker

Largely inspired by dh1tw and remoteAudio-xcompile. Images are when changes are pushed to the main branch using Actions.

How to invoke?

You can compile the zk source code directly from the source code directory. As example, for compiling the binary for linux/arm64 you have to execute the following command:

docker run --rm -v "$PWD":/usr/src/zk -w /usr/src/zk ghcr.io/zk-org/zk-xcompile:linux-arm64 /bin/bash -c 'make'

This call is already set in zk Makefile, e.g. make dist-linux-amd64.

More detail is documented here on Golang's docker hub.

The images are hosted with ghcr within zk-org.

Releasing changes

Clone this repo, make necessary changes, submit a PR.

Manual building

docker buildx build -t ghcr.io/zk-org/zk-xcompile:linux-amd64 ./linux-amd64

About

Cross-compiling zk with Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published