mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-07-04 10:19:51 +00:00
ci: remove xgo usage (as we no longer need cgo)
This commit is contained in:
parent
b3608956be
commit
45eacaf886
12
.github/workflows/build-master.yml
vendored
12
.github/workflows/build-master.yml
vendored
@ -25,18 +25,18 @@ jobs:
|
|||||||
id: current-time
|
id: current-time
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: crazy-max/ghaction-xgo@v2.1.0
|
uses: tobyxdd/go-cross-build@d00fc41eb205f57dd90f6e5af4613e21c7ebe73f
|
||||||
env:
|
env:
|
||||||
TIME: "${{ steps.current-time.outputs.time }}"
|
TIME: "${{ steps.current-time.outputs.time }}"
|
||||||
GOFLAGS: "-tags=gpl"
|
GOFLAGS: "-tags=gpl"
|
||||||
|
CGO_ENABLED: "0"
|
||||||
with:
|
with:
|
||||||
xgo_version: latest
|
name: hysteria
|
||||||
go_version: 1.19
|
|
||||||
dest: dist
|
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 }}
|
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
|
- name: Archive
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user