Skip to content

Commit 7d224bc

Browse files
committed
ci: Do not generate checksum files anymore
1 parent 6fec428 commit 7d224bc

2 files changed

Lines changed: 5 additions & 22 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,12 @@ jobs:
3131
- name: Build binary
3232
run: make release-${{ matrix.goos }}-${{ matrix.goarch }}
3333

34-
- name: Generate SHA256 checksum
35-
run: make checksums
36-
3734
- name: Upload binaries
3835
uses: actions/upload-artifact@v5
3936
with:
4037
name: backup-${{ matrix.goos }}-${{ matrix.goarch }}
4138
path: dist/backup-${{ matrix.goos }}-${{ matrix.goarch }}
4239

43-
- name: Upload SHA256 checksum files
44-
uses: actions/upload-artifact@v5
45-
with:
46-
name: sha256-checksums-${{ matrix.goos }}-${{ matrix.goarch }}
47-
path: dist/*.sha256
48-
4940
release:
5041
name: Publish Release
5142
needs: build

Makefile

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BUILD_CMD = CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -tags=prod
55
PACKAGE = ./backup/main.go
66
COVERAGE_THRESHOLD = 98
77

8-
.PHONY: build clean test test-integration lint tidy checksums release sanity-check check-mod-tidy lint-config-check lint-fix format check-clean check-coverage
8+
.PHONY: build clean test test-integration lint tidy release sanity-check check-mod-tidy lint-config-check lint-fix format check-clean check-coverage
99

1010
format:
1111
go fmt ./...
@@ -55,21 +55,13 @@ release-%:
5555
@mkdir -p dist
5656
GOOS=$(word 1,$(subst -, ,$*)) GOARCH=$(word 2,$(subst -, ,$*)) $(BUILD_CMD) -o dist/backup-$* $(PACKAGE)
5757

58-
checksums:
59-
@for file in dist/*; do \
60-
if [ "$${file##*.}" != "sha256" ]; then \
61-
sha256sum "$$file" > "$$file.sha256"; \
62-
fi; \
63-
done
64-
65-
release: release-linux-amd64 release-darwin-amd64 release-windows-amd64 checksums
58+
release: release-linux-amd64 release-darwin-amd64 release-windows-amd64
6659
@echo
67-
@echo "Binaries with sizes and checksums:"
60+
@echo "Binaries with sizes:"
6861
@for file in dist/*; do \
69-
if [ -f "$$file" ] && [ "$${file##*.}" != "sha256" ]; then \
62+
if [ -f "$$file" ]; then \
7063
size=$$(stat --printf="%s" "$$file"); \
71-
checksum=$$(cat "$$file.sha256" | awk '{print $$1}'); \
72-
printf "%-40s %-15s %-64s\n" "$$file" "Size: $$size bytes" "Checksum: $$checksum"; \
64+
printf "%-40s Size: %s bytes\n" "$$file" "$$size"; \
7365
fi; \
7466
done
7567

0 commit comments

Comments
 (0)