Skip to content

Commit

Permalink
vimeo: document build process
Browse files Browse the repository at this point in the history
  • Loading branch information
cfebs committed Feb 9, 2022
1 parent 0a3190b commit 9d07a27
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.out/
13 changes: 13 additions & 0 deletions Makefile.vimeo
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
GIT_TAG ?= $(shell git describe --tags)
OUT_DIR := .out

.PHONY: build
build:
rm -rf $(OUT_DIR)
mkdir -p $(OUT_DIR)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "$(OUT_DIR)/mkcert-$(GIT_TAG)-linux-amd64" -ldflags "-X main.Version=$(GIT_TAG)"
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -o "$(OUT_DIR)/mkcert-$(GIT_TAG)-linux-arm" -ldflags "-X main.Version=$(GIT_TAG)"
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o "$(OUT_DIR)/mkcert-$(GIT_TAG)-linux-arm64" -ldflags "-X main.Version=$(GIT_TAG)"
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o "$(OUT_DIR)/mkcert-$(GIT_TAG)-darwin-amd64" -ldflags "-X main.Version=$(GIT_TAG)"
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o "$(OUT_DIR)/mkcert-$(GIT_TAG)-windows-amd64.exe" -ldflags "-X main.Version=$(GIT_TAG)"
(cd $(OUT_DIR) && sha256sum ./* > ./mkmkcert-$(GIT_TAG)-sha256sums)
5 changes: 5 additions & 0 deletions README.vimeo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Release

* Checkout a tag
* make -f Makefile.vimeo
* Upload artifacts in .out/

0 comments on commit 9d07a27

Please sign in to comment.