🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub
Docker image for cross-compiling Rust projects with GoReleaser.
TODO:
- Add chocolatey
- Fix warning during
release
builds for*-apple-darwin
targets
rustup
/cargo
(stable - 1.83.0) - you can install other toolchains as neededcargo-zigbuild
(thanks to @messense)zig
cargo-xwin
(thanks to @messense and @Jake-Shadle)- Microsoft CRT headers and libraries
- Windows SDK headers and libraries
- MacOSX11.3.sdk
By using this software you are consented to accept the license at https://go.microsoft.com/fwlink/?LinkId=2086102
Please ensure you have read and understood the Xcode license terms before continuing.
- GoReleaser variables.
GPG_KEY
(optional) - defaults to /secrets/key.gpg. Ignored if file not found.DOCKER_CREDS_FILE
(optional) - path to JSON file with docker login credentials. Useful when push to multiple docker registries required.DOCKER_FAIL_ON_LOGIN_ERROR
(optional) - fail on docker login error.
Use docker login to auth to repos and mount docker config file. For example:
docker run -v $(HOME)/.docker/config.json:/root/.docker/config.json ...
To login from within goreleaser-rust-cross
container, create creds file.
{
"registries": [
{
"user": "<username>",
"pass": "<password>",
"registry": "<registry-url>" // for e.g. ghcr.io
}
]
}
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.