Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Commit

Permalink
Parallel build
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Sep 4, 2019
1 parent ad47182 commit 1488bf5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ steps:
commands:
- ln -s $PWD /build
- cd /build
- go mod download
- mkdir release
- GOOS=linux GOARCH=386 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-386"
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-amd64"
- GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-arm"
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-arm64"
- GOOS=windows GOARCH=386 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-386.exe"
- GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-amd64.exe"
- GOOS=linux GOARCH=386 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-386" &
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-amd64" &
- GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-arm" &
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-arm64" &
- GOOS=windows GOARCH=386 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-386.exe" &
- GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o "release/$DRONE_REPO_NAME-amd64.exe" &
- wait

- name: publish
image: plugins/github-release
Expand Down

0 comments on commit 1488bf5

Please sign in to comment.