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