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

Commit

Permalink
:fix: 修复自动构建的二进制文件格式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
perrornet committed Jan 16, 2022
1 parent 695afcc commit c9f3ced
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,7 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: "1.17"
- run: goVersion=$(go version) && \
gitHash=$(git show -s --format=%H) && \
buildTime=$(git show -s --format=%cd) && \
gitCommit=$(git show -s --format=%s) && \
cd ./cmd/miner-proxy/ && \
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ../../miner-proxy_darwin_amd64 . && \
CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -o ../../miner-proxy_freebsd_386 . && \
CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -o ../../miner-proxy_freebsd_amd64 . && \
CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -o ../../miner-proxy_freebsd_arm . && \
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o ../../miner-proxy_linux_386 . && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../../miner-proxy_linux_amd64 . && \
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o ../../miner-proxy_linux_arm . && \
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -o ../../miner-proxy_linux_mips . && \
CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -o ../../miner-proxy_linux_mips64 . && \
CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -o ../../miner-proxy_linux_mips64le . && \
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -o ../../miner-proxy_linux_mipsle . && \
CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -o ../../miner-proxy_linux_s390x . && \
CGO_ENABLED=0 GOOS=netbsd GOARCH=386 go build -o ../../miner-proxy_netbsd_386 . && \
CGO_ENABLED=0 GOOS=netbsd GOARCH=amd64 go build -o ../../miner-proxy_netbsd_amd64 . && \
CGO_ENABLED=0 GOOS=netbsd GOARCH=arm go build -o ../../miner-proxy_netbsd_arm . && \
CGO_ENABLED=0 GOOS=openbsd GOARCH=386 go build -o ../../miner-proxy_openbsd_386 . && \
CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 go build -o ../../miner-proxy_openbsd_amd64 . && \
CGO_ENABLED=0 GOOS=windows GOARCH=amd64.exe go build -o ../../miner-proxy_windows_amd64.exe .
- run: chmod +x ./build.sh &&./build.sh

- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit c9f3ced

Please sign in to comment.