Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binaries for releases #31

Open
drnic opened this issue Sep 25, 2019 · 5 comments
Open

binaries for releases #31

drnic opened this issue Sep 25, 2019 · 5 comments

Comments

@drnic
Copy link

drnic commented Sep 25, 2019

For future releases, could we include pre-compiled binaries?

I should have asked earlier rather than wait til I needed it. In lieu of this repo currently shipping binaries, I've created a new repo that will house the binaries (currently for linux/macos) for anyone who wants them (plus the CI pipeline to show how they are built).

https://github.com/starkandwayne/minica-binaries/releases

I've also bundled these pre-compiled binaries into homebrew tap + a debian package if they are useful to anyone. See https://github.com/starkandwayne/minica-binaries readme.

If you like these and want them mentioned in the README here, I'll submit a PR.

Thanks for minica!

FYI - I'm using the pre-compiled binaries in my helm-manager up script to automatically generate TLS certs for Tiller https://github.com/starkandwayne/helm-tiller-manager/blob/master/bin/helm-manager#L47-L61

@jsha
Copy link
Owner

jsha commented Nov 12, 2019

Thanks very much for the suggestion, and for taking the initiative to build a CI pipeline. I like it, and will aim to incorporate it into the official repo and make binaries available.

Glad you enjoy the tool!

@fopina
Copy link

fopina commented May 16, 2020

#41 to the rescue? :)

@ctrlcctrlv
Copy link

I'm doing this in minica2. https://github.com/ctrlcctrlv/minica2.go/releases/tag/v1.0.1

I provide these binaries:

find dist -iname '*.tar*' | cut -c 6-
minica2.v1.0.1.arm64.darwin.tar.zstd
minica2.v1.0.1.x86.windows.exe.tar.zstd
minica2.v1.0.1.x86_64.darwin.tar.zstd
minica2.v1.0.1.arm.linux.tar.zstd
minica2.v1.0.1.arm64.linux.tar.zstd
minica2.v1.0.1.x86.linux.tar.zstd
minica2.v1.0.1.x86_64.windows.exe.tar.zstd
minica2.v1.0.1.x86_64.linux.tar.zstd

I do it via Makefile:

.PHONY:
dist:
	rm -rf dist && mkdir dist && $(MAKE) -j$(shell nproc) bdist && \
		find dist -executable -type f | parallel tar --zstd -c -v -f {}.tar.zstd {}

.PHONY:
bdist:
	GOOS=darwin GOARCH=amd64 go build -o dist/$(GOBIN).v$(VERSION).x86_64.darwin
	GOOS=linux GOARCH=amd64 go build -o dist/$(GOBIN).v$(VERSION).x86_64.linux
	GOOS=windows GOARCH=amd64 go build -o dist/$(GOBIN).v$(VERSION).x86_64.windows.exe
	GOOS=linux GOARCH=386 go build -o dist/$(GOBIN).v$(VERSION).x86.linux
	GOOS=windows GOARCH=386 go build -o dist/$(GOBIN).v$(VERSION).x86.windows.exe
	GOOS=linux GOARCH=arm64 go build -o dist/$(GOBIN).v$(VERSION).arm64.linux
	GOOS=darwin GOARCH=arm64 go build -o dist/$(GOBIN).v$(VERSION).arm64.darwin
	GOOS=linux GOARCH=arm go build -o dist/$(GOBIN).v$(VERSION).arm.linux

@fopina
Copy link

fopina commented Dec 17, 2022

@ctrlcctrlv feel free to use that github action in #41 to get all the assets compiled and published upon tagging like https://github.com/fopina/minica/releases/tag/v1.0.2-1

@ctrlcctrlv
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants