Skip to content

Commit

Permalink
Reduce binary asset size (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham149 authored Mar 22, 2023
1 parent 44b6d9c commit 2815638
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ steps:
image: golang:1.19
commands:
- go test ./...
- GOOS=linux GOARCH=amd64 go build -o release/plugin-linux-amd64
- GOOS=linux GOARCH=arm64 go build -o release/plugin-linux-arm64
- GOOS=darwin GOARCH=amd64 go build -o release/plugin-darwin-amd64
- GOOS=darwin GOARCH=arm64 go build -o release/plugin-darwin-arm64
- GOOS=windows GOARCH=amd64 go build -o release/plugin-windows-amd64.exe
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o release/plugin-linux-amd64
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o release/plugin-linux-arm64
- GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o release/plugin-darwin-amd64
- GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o release/plugin-darwin-arm64
- GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o release/plugin-windows-amd64.exe
- name: release amd64 binary
image: plugins/github-release
settings:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
_*.md
.vscode
.idea
release/

0 comments on commit 2815638

Please sign in to comment.