This repository was archived by the owner on Mar 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ PROJECT := container-diff
27
27
REPOPATH ?= $(ORG ) /$(PROJECT )
28
28
RELEASE_BUCKET ?= $(PROJECT )
29
29
30
- SUPPORTED_PLATFORMS := linux-amd64 darwin-amd64 windows-amd64 .exe
30
+ SUPPORTED_PLATFORMS := linux-$( GOARCH ) darwin-$( GOARCH ) windows-$( GOARCH ) .exe
31
31
BUILD_PACKAGE = $(REPOPATH )
32
32
33
33
# These build tags are from the containers/image library.
@@ -42,7 +42,10 @@ $(BUILD_DIR)/$(PROJECT): $(BUILD_DIR)/$(PROJECT)-$(GOOS)-$(GOARCH)
42
42
cp $(BUILD_DIR ) /$(PROJECT ) -$(GOOS ) -$(GOARCH ) $@
43
43
44
44
$(BUILD_DIR ) /$(PROJECT ) -% -$(GOARCH ) : $(GO_FILES ) $(BUILD_DIR )
45
- GOOS=$* GOARCH=$(GOARCH ) go build -tags $(GO_BUILD_TAGS ) -ldflags $(GO_LDFLAGS ) -o $@ $(BUILD_PACKAGE )
45
+ GOOS=$* GOARCH=$(GOARCH ) CGO_ENABLED=0 go build -tags $(GO_BUILD_TAGS ) -ldflags $(GO_LDFLAGS ) -o $@ $(BUILD_PACKAGE )
46
+
47
+ % .sha256 : %
48
+ shasum -a 256 $< & > $@
46
49
47
50
% .exe : %
48
51
mv $< $@
@@ -51,7 +54,7 @@ $(BUILD_DIR):
51
54
mkdir -p $(BUILD_DIR )
52
55
53
56
.PHONY : cross
54
- cross : $(foreach platform, $(SUPPORTED_PLATFORMS ) , $(BUILD_DIR ) /$(PROJECT ) -$(platform ) )
57
+ cross : $(foreach platform, $(SUPPORTED_PLATFORMS ) , $(BUILD_DIR ) /$(PROJECT ) -$(platform ) .sha256 )
55
58
56
59
.PHONY : test
57
60
test : $(BUILD_DIR ) /$(PROJECT )
You can’t perform that action at this time.
0 commit comments