-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (26 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: cleanup-builds
cleanup-builds:
rm -rf build
mkdir build
.PHONY: build-linux
build-linux:
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o build/github-skyline-linux .
.PHONY: build-linux-arm64
build-linux-arm64:
GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o build/github-skyline-linux-arm64 .
.PHONY: build-darwin
build-darwin:
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s" -o build/github-skyline-macos .
.PHONY: build-darwin-arm64
build-darwin-arm64:
GOOS=darwin GOARCH=arm64 go build -ldflags "-w -s" -o build/github-skyline-macos-arm64 .
.PHONY: build-windows
build-windows:
GOOS=windows GOARCH=amd64 go build -ldflags "-w -s" -o build/github-skyline.exe .
.PHONY: build-windows-arm64
build-windows-arm64:
GOOS=windows GOARCH=arm64 go build -ldflags "-w -s" -o build/github-skyline-arm64.exe .
.PHONY: build
build: cleanup-builds build-linux build-linux-arm64 build-darwin build-darwin-arm64 build-windows build-windows-arm64
github-release: build
gh release create --generate-notes v$(shell ./build/github-skyline-linux --version-raw) ./build/*