mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-08 13:29:56 +00:00
Switch to crazy-max/ghaction-xgo
This commit is contained in:
parent
65a1b7b5f4
commit
22675c740e
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user