mirror of https://github.com/statping/statping
xgo builds
parent
e1626595fc
commit
cf2a4fb909
|
@ -204,8 +204,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Download Go mods
|
- name: Download Go mods
|
||||||
run: |
|
run: make test-deps
|
||||||
make test-deps
|
|
||||||
|
|
||||||
- name: Download Compiled Frontend (rice-box.go)
|
- name: Download Compiled Frontend (rice-box.go)
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
@ -214,17 +213,7 @@ jobs:
|
||||||
path: ./source
|
path: ./source
|
||||||
|
|
||||||
- name: Build with xgo
|
- name: Build with xgo
|
||||||
uses: crazy-max/ghaction-xgo@v1
|
run: make build-mac
|
||||||
with:
|
|
||||||
xgo_version: latest
|
|
||||||
go_version: 1.14.2
|
|
||||||
dest: build
|
|
||||||
pkg: cmd
|
|
||||||
prefix: statping
|
|
||||||
targets: darwin/386,darwin/amd64
|
|
||||||
v: true
|
|
||||||
x: false
|
|
||||||
ldflags: -s -w -X main.VERSION=$VERSION
|
|
||||||
|
|
||||||
- name: Upload MacOSX Builds
|
- name: Upload MacOSX Builds
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
@ -249,8 +238,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Download Go mods
|
- name: Download Go mods
|
||||||
run: |
|
run: make test-deps
|
||||||
make test-deps
|
|
||||||
|
|
||||||
- name: Download Compiled Frontend (rice-box.go)
|
- name: Download Compiled Frontend (rice-box.go)
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
@ -259,17 +247,7 @@ jobs:
|
||||||
path: ./source
|
path: ./source
|
||||||
|
|
||||||
- name: Build with xgo
|
- name: Build with xgo
|
||||||
uses: crazy-max/ghaction-xgo@v1
|
run: make build-linux
|
||||||
with:
|
|
||||||
xgo_version: latest
|
|
||||||
go_version: 1.14.2
|
|
||||||
dest: build
|
|
||||||
pkg: cmd
|
|
||||||
prefix: statping
|
|
||||||
targets: linux/386,linux/amd64,linux/arm-6,linux/arm-7,linux/arm,linux/arm64
|
|
||||||
v: true
|
|
||||||
x: false
|
|
||||||
ldflags: -s -w -extldflags -static -X main.VERSION=$VERSION
|
|
||||||
|
|
||||||
- name: Upload Linux Builds
|
- name: Upload Linux Builds
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
@ -294,8 +272,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Download Go mods
|
- name: Download Go mods
|
||||||
run: |
|
run: make test-deps
|
||||||
make test-deps
|
|
||||||
|
|
||||||
- name: Download Compiled Frontend (rice-box.go)
|
- name: Download Compiled Frontend (rice-box.go)
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
@ -304,17 +281,7 @@ jobs:
|
||||||
path: ./source
|
path: ./source
|
||||||
|
|
||||||
- name: Build with xgo
|
- name: Build with xgo
|
||||||
uses: crazy-max/ghaction-xgo@v1
|
run: make build-win
|
||||||
with:
|
|
||||||
xgo_version: latest
|
|
||||||
go_version: 1.14.2
|
|
||||||
dest: build
|
|
||||||
pkg: cmd
|
|
||||||
prefix: statping
|
|
||||||
targets: windows/386,windows/amd64
|
|
||||||
v: true
|
|
||||||
x: false
|
|
||||||
ldflags: -s -w -extldflags -static -X main.VERSION=$VERSION
|
|
||||||
|
|
||||||
- name: Upload Windows Builds
|
- name: Upload Windows Builds
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
|
Loading…
Reference in New Issue