This commit is contained in:
parent
2153585ad3
commit
3bcc62ccc2
|
@ -20,11 +20,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ./e6dl-windows-amd64.exe .
|
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ./e6dl-windows-amd64.exe .
|
||||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ./e6dl-darwin-amd64 .
|
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ./e6dl-darwin-amd64 .
|
||||||
|
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o ./e6dl-darwin-arm64 .
|
||||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./e6dl-linux-amd64 .
|
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./e6dl-linux-amd64 .
|
||||||
|
GOOS=linux GOARCH=ppc64 go build -ldflags="-s -w" -o ./e6dl-linux-ppc64 .
|
||||||
- name: Compress binaries with upx
|
- name: Compress binaries with upx
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y upx
|
sudo apt-get install -y upx
|
||||||
upx e6dl-windows-amd64.exe e6dl-darwin-amd64 e6dl-linux-amd64
|
upx e6dl-windows-amd64.exe e6dl-darwin-amd64 e6dl-darwin-arm64 e6dl-linux-amd64 e6dl-linux-ppc64
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
uses: skx/github-action-publish-binaries@release-1.3
|
uses: skx/github-action-publish-binaries@release-1.3
|
||||||
env:
|
env:
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -14,10 +14,16 @@ dist-macos: ensure-dist-dir
|
||||||
# Build for macOS x64
|
# Build for macOS x64
|
||||||
GOOS=darwin GOARCH=amd64 $(GOBUILD) -o dist/e6dl-darwin-amd64 main.go
|
GOOS=darwin GOARCH=amd64 $(GOBUILD) -o dist/e6dl-darwin-amd64 main.go
|
||||||
|
|
||||||
|
# Build for macOS ARM
|
||||||
|
GOOS=darwin GOARCH=arm64 $(GOBUILD) -o dist/e6dl-darwin-arm64 main.go
|
||||||
|
|
||||||
dist-linux: ensure-dist-dir
|
dist-linux: ensure-dist-dir
|
||||||
# Build for Linux x64
|
# Build for Linux x64
|
||||||
GOOS=linux GOARCH=amd64 $(GOBUILD) -o dist/e6dl-linux-amd64 main.go
|
GOOS=linux GOARCH=amd64 $(GOBUILD) -o dist/e6dl-linux-amd64 main.go
|
||||||
|
|
||||||
|
# Build for Linux PPC64
|
||||||
|
GOOS=linux GOARCH=ppc64 $(GOBUILD) -o dist/e6dl-linux-ppc64 main.go
|
||||||
|
|
||||||
dist: dist-win dist-macos dist-linux
|
dist: dist-win dist-macos dist-linux
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Reference in New Issue