mirror of https://github.com/statping/statping
workflow
parent
61237e99f2
commit
a46205cd2a
|
@ -66,18 +66,20 @@ jobs:
|
||||||
|
|
||||||
- name: Build with xgo
|
- name: Build with xgo
|
||||||
uses: crazy-max/ghaction-xgo@v1
|
uses: crazy-max/ghaction-xgo@v1
|
||||||
|
env:
|
||||||
|
VERSION: ${{ env.VERSION }}
|
||||||
|
COMMIT: ${{ env.GITHUB_SHA }}
|
||||||
with:
|
with:
|
||||||
xgo_version: latest
|
xgo_version: latest
|
||||||
go_version: 1.15.x
|
go_version: 1.14.x
|
||||||
dest: build
|
dest: build
|
||||||
prefix: statping
|
prefix: statping
|
||||||
targets: linux/amd64,linux/386,linux/arm-7,linux/arm-6,linux/arm64,windows/386,windows/amd64,darwin/386,darwin/amd64
|
targets: linux/amd64,linux/386,linux/arm-7,linux/arm-6,linux/arm64,windows-6.0/386,windows-6.0/amd64,darwin-10.6/386,darwin-10.6/amd64
|
||||||
v: false
|
v: false
|
||||||
x: false
|
x: false
|
||||||
pkg: cmd
|
pkg: cmd
|
||||||
buildmode: pie
|
buildmode: pie
|
||||||
tags: netgo osusergo static_build
|
ldflags: -s -w -tags netgo osusergo static_build -X main.VERSION=${{ env.VERSION }} -X main.COMMIT=${{ env.COMMIT }} -extldflags -static
|
||||||
ldflags: -s -w -X main.VERSION=${VERSION} -X main.COMMIT=${github.sha} -extldflags -static
|
|
||||||
|
|
||||||
- name: check files
|
- name: check files
|
||||||
run: pwd && ls && cd build && ls
|
run: pwd && ls && cd build && ls
|
||||||
|
|
Loading…
Reference in New Issue