Skip to content

zk-org/zk-xcompile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0ae827d · Nov 29, 2024

History

17 Commits
Nov 23, 2024
Nov 23, 2024
Nov 23, 2024
Nov 23, 2024
Nov 28, 2024
Nov 23, 2024
Nov 23, 2024
Feb 28, 2021
Nov 23, 2024

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