diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml index e49b09c..69fb231 100644 --- a/.github/workflows/build-master.yml +++ b/.github/workflows/build-master.yml @@ -25,18 +25,18 @@ jobs: id: current-time - name: Build - uses: crazy-max/ghaction-xgo@v2.1.0 + uses: tobyxdd/go-cross-build@d00fc41eb205f57dd90f6e5af4613e21c7ebe73f env: TIME: "${{ steps.current-time.outputs.time }}" GOFLAGS: "-tags=gpl" + CGO_ENABLED: "0" with: - xgo_version: latest - go_version: 1.19 + name: hysteria dest: dist - prefix: hysteria - targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/s390x,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386 ldflags: -w -s -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }} - pkg: cmd + platforms: 'darwin/amd64, darwin/arm64, windows/amd64, windows/386, linux/amd64, linux/386, linux/arm, linux/arm64, linux/s390x, linux/mipsle, freebsd/amd64, freebsd/386, freebsd/arm, freebsd/arm64' + package: cmd + compress: false - name: Archive uses: actions/upload-artifact@v3