From b985748ef21266f101a16e6fd4e95dede8e4bb7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Fri, 10 Jun 2022 20:20:42 +0200 Subject: [PATCH] Work around bsd-tar corrupting archive on GitHub See https://github.com/actions/virtual-environments/issues/2619 --- src/standalone/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/standalone/Makefile b/src/standalone/Makefile index e703862..9eabf13 100644 --- a/src/standalone/Makefile +++ b/src/standalone/Makefile @@ -1,6 +1,13 @@ UNAME_S=$(shell uname -s) UNAME_P=$(shell uname -p) +ifeq (, $(shell which gtar)) +TAR := tar +else +# bsd-tar corrupts files on GitHub: https://github.com/actions/virtual-environments/issues/2619 +TAR := gtar +endif + .DEFAULT_GOAL := all ################################################ @@ -65,7 +72,7 @@ waforth_core.h: waforth_core.wasm .PHONY: package package: waforth - tar czf waforth-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforth + $(TAR) czf waforth-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforth .PHONY: check check: