From cc379f95c2138b349327ed370ffbc8128f3ee067 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 13 Jan 2021 18:13:18 +0200 Subject: [PATCH] Makefile: add `release-victoria-metrics-arm64` build rule --- Makefile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 968b7df79..9d7ffaad2 100644 --- a/Makefile +++ b/Makefile @@ -64,9 +64,23 @@ release: \ release-victoria-metrics \ release-vmutils -release-victoria-metrics: victoria-metrics-prod - cd bin && tar czf victoria-metrics-$(PKG_TAG).tar.gz victoria-metrics-prod && \ - sha256sum victoria-metrics-$(PKG_TAG).tar.gz > victoria-metrics-$(PKG_TAG)_checksums.txt +release-victoria-metrics: \ + release-victoria-metrics-amd64 \ + release-victoria-metrics-arm64 + +release-victoria-metrics-amd64: + GOARCH=amd64 $(MAKE) release-victoria-metrics-generic + +release-victoria-metrics-arm64: + GOARCH=arm64 $(MAKE) release-victoria-metrics-generic + +release-victoria-metrics-generic: victoria-metrics-$(GOARCH)-prod + cd bin && \ + tar --transform="flags=r;s|-$(GOARCH)||" -czf victoria-metrics-$(GOARCH)-$(PKG_TAG).tar.gz \ + victoria-metrics-$(GOARCH)-prod \ + && sha256sum victoria-metrics-$(GOARCH)-$(PKG_TAG).tar.gz \ + victoria-metrics-$(GOARCH)-prod \ + | sed s/-$(GOARCH)// > victoria-metrics-$(GOARCH)-$(PKG_TAG)_checksums.txt release-vmutils: \ release-vmutils-amd64 \