mirror of https://github.com/statping/statping
github actions
parent
543bfe05fc
commit
32da4badde
|
@ -194,9 +194,13 @@ jobs:
|
|||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.14.2'
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
node-version: '10.x'
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Global Dependencies
|
||||
run: npm install -g yarn sass
|
||||
|
||||
- name: Setting ENV's
|
||||
run: |
|
||||
|
@ -206,26 +210,16 @@ jobs:
|
|||
shell: bash
|
||||
|
||||
- name: Download Go mods
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
make test-deps
|
||||
|
||||
- name: Download Compiled Frontend (rice-box.go)
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: static-rice-box
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}/source
|
||||
run: make test-deps
|
||||
|
||||
- name: Build with xgo
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
make build-mac
|
||||
run: make clean compile build-mac
|
||||
|
||||
- name: Upload MacOSX Builds
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: darwin-builds
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}/build
|
||||
path: ./build
|
||||
|
||||
build-linux:
|
||||
needs: compile
|
||||
|
@ -234,10 +228,13 @@ jobs:
|
|||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.14.2'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
node-version: '10.x'
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Global Dependencies
|
||||
run: npm install -g yarn sass
|
||||
|
||||
- name: Setting ENV's
|
||||
run: |
|
||||
|
@ -247,26 +244,16 @@ jobs:
|
|||
shell: bash
|
||||
|
||||
- name: Download Go mods
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
make test-deps
|
||||
|
||||
- name: Download Compiled Frontend (rice-box.go)
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: static-rice-box
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}/source
|
||||
run: make test-deps
|
||||
|
||||
- name: Build with xgo
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
make build-linux
|
||||
run: make clean compile build-linux
|
||||
|
||||
- name: Upload Linux Builds
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux-builds
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}/build
|
||||
path: ./build
|
||||
|
||||
build-windows:
|
||||
needs: compile
|
||||
|
@ -275,10 +262,13 @@ jobs:
|
|||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.14.2'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
node-version: '10.x'
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Global Dependencies
|
||||
run: npm install -g yarn sass
|
||||
|
||||
- name: Setting ENV's
|
||||
run: |
|
||||
|
@ -288,26 +278,16 @@ jobs:
|
|||
shell: bash
|
||||
|
||||
- name: Download Go mods
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
make test-deps
|
||||
|
||||
- name: Download Compiled Frontend (rice-box.go)
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: static-rice-box
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}/source
|
||||
run: make test-deps
|
||||
|
||||
- name: Build with xgo
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/${{ github.repository }}
|
||||
make build-win
|
||||
run: make clean compile build-win
|
||||
|
||||
- name: Upload Windows Builds
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: windows-builds
|
||||
path: $(go env GOPATH)/src/github.com/${{ github.repository }}/build
|
||||
path: ./build
|
||||
|
||||
upload-release:
|
||||
needs: [test, test-postman, build-linux, build-mac, build-windows]
|
||||
|
|
Loading…
Reference in New Issue