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

Create sha256 checksums for all binaries #786

Merged
merged 4 commits into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ clean:

build: $(BINARIES)

build-cross: $(CROSS_TARBALLS)
build-cross: $(CROSS_TARBALLS) dist/subctl-checksums.txt

licensecheck: build | bin/lichen
bin/lichen -c .lichen.yaml $(BINARIES)
Expand All @@ -98,6 +98,9 @@ dist/subctl-%.tar.gz: cmd/bin/subctl-%
mkdir -p dist
tar -czf $@ --transform "s/^cmd.bin/subctl-$(VERSION)/" $<

dist/subctl-checksums.txt: $(CROSS_TARBALLS)
cd $(@D) && sha256sum $(^F) >> $(@F)

# Versions may include hyphens so it's easier to use $(VERSION) than to extract them from the target

# Special case for Linux container builds
Expand Down