github actions

pull/576/head
hunterlong 2020-05-05 22:16:07 -07:00
parent 543bfe05fc
commit 32da4badde
1 changed files with 27 additions and 47 deletions

View File

@ -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]