Skip to content

Commit

Permalink
Fix GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Apr 11, 2023
1 parent 92762d1 commit e17217f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- name: Build Binaries
run: |
go mod download
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-linux-amd64
GOOS=linux GOARCH=arm GOARM=7 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-linux-arm7
GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-linux-arm64
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-windows-amd64.exe
GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-darwin-arm64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-linux-arm7
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-linux-arm64
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-windows-amd64.exe
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-darwin-amd64
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w -X 'go-public/common.Version=$(git describe --tags)'" -o go-public-darwin-arm64
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit e17217f

Please sign in to comment.