From ef583c159f8a4fac4d78454958596eae17476607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 23 Aug 2021 16:42:57 +0300 Subject: [PATCH] sha256sum --- .build.yml | 7 ++++--- .gitignore | 3 ++- Makefile | 12 +++++++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.build.yml b/.build.yml index 24cb6d6..c581ddb 100644 --- a/.build.yml +++ b/.build.yml @@ -11,8 +11,9 @@ tasks: - test: | make -C undocker coverage.html - lint: | - make -C undocker -j$(nproc) -O lint - - all: | - make -C undocker -j$(nproc) -O all + make -C undocker -O -j$(nproc) lint + - binaries: | + make -C undocker -O -j$(nproc) sha256sum.txt + cat undocker/sha256sum.txt artifacts: - undocker/coverage.html diff --git a/.gitignore b/.gitignore index d33b25d..0930bb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -/undocker +/undocker-* coverage.html +sha256sum.txt* diff --git a/Makefile b/Makefile index 42f4246..8259f11 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ GOOSARCHS = linux/amd64 \ windows/amd64/.exe define undockertarget -TARGETS += undocker-$(1)-$(2)$(firstword $(3)) +UNDOCKERS += undocker-$(1)-$(2)$(firstword $(3)) undocker-$(1)-$(2)$(firstword $(3)): $(GODEPS) CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -o $$@ endef @@ -17,7 +17,7 @@ $(foreach goosarch,$(GOOSARCHS),\ $(eval $(call undockertarget,$(word 1,$(subst /, ,$(goosarch))),$(word 2,$(subst /, ,$(goosarch))),$(word 3,$(subst /, ,$(goosarch)))))) .PHONY: all -all: $(TARGETS) coverage.html +all: $(UNDOCKERS) coverage.html .PHONY: test test: @@ -41,6 +41,12 @@ coverage.out: $(GODEPS) coverage.html: coverage.out go tool cover -html=$< -o $@ +sha256sum.txt: $(UNDOCKERS) + sha256sum $(UNDOCKERS) > $@ + +sha256sum.txt.asc: sha256sum.txt + gpg --clearsign $< + .PHONY: clean clean: - rm -f coverage.html $(TARGETS) + rm -f $(UNDOCKERS) coverage.html sha256sum.txt sha256sum.txt.asc