Skip to content

Commit

Permalink
multi arch/os
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Apr 7, 2021
1 parent 922b539 commit 6dabe32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ release: clean ; $(info $(M) building binaries for multiple os/arch...) @ ## Bui
-ldflags "$(LDFLAGS_VERSION)" \
-o $(BIN)/$(basename $(MODULE))_$(GOOS)_$(GOARCH) ./cmd/main.go || true)))

.PHONY: check_file_types
check_file_types: $(BIN)/* ; $(info $(M) check file type os/arch...) @ ## Check file types for release
@for f in $^ ; do \
.PHONY: check-file-types
check-file-types: ; $(info $(M) check file type os/arch...) @ ## Check file types for release
@for f in $(BIN)/* ; do \
file $${f} ; \
done

Expand Down Expand Up @@ -149,7 +149,7 @@ lint: setup-lint; $(info $(M) running golangci-lint...) @ ## Run golangci-lint l

# generate github draft release
.PHONY: github-release
github-release: setup-ghr | release check_file_types; $(info $(M) generating github draft release...) @ ## run ghr tool
github-release: setup-ghr | release check-file-types; $(info $(M) generating github draft release...) @ ## run ghr tool
ifndef RELEASE_TOKEN
$(error RELEASE_TOKEN is undefined)
endif
Expand Down

0 comments on commit 6dabe32

Please sign in to comment.