Skip to content

Commit

Permalink
Work around bsd-tar corrupting archive on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
remko committed Jun 10, 2022
1 parent 08576b9 commit b985748
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 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

################################################
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b985748

Please sign in to comment.