From 22675c740e50c3a1e47d0280479e4ca06138ee2a Mon Sep 17 00:00:00 2001 From: Toby Date: Sat, 8 May 2021 21:02:40 -0700 Subject: [PATCH] Switch to crazy-max/ghaction-xgo --- .github/workflows/release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 102ca4a..7672694 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,16 +27,17 @@ jobs: id: current-time - name: Build - uses: tobyxdd/go-cross-build@25e1ba1da2fb42ed9787b615f0e89235569c58fa + uses: crazy-max/ghaction-xgo@v1 env: TIME: "${{ steps.current-time.outputs.time }}" with: - name: hysteria - dest: ./dist/ + xgo_version: latest + go_version: latest + dest: dist + prefix: hysteria + targets: linux/amd64,linux/386,linux/arm,linux/arm64,linux/mipsle,darwin/amd64,darwin/arm64,windows/amd64,windows/386 ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }} - platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/mipsle, darwin/amd64, darwin/arm64, windows/amd64, windows/386' - package: ./cmd - compress: false + package: cmd - name: Upload uses: meeDamian/github-release@2.0