|
|
|
@ -11,39 +11,35 @@ jobs:
|
|
|
|
|
build:
|
|
|
|
|
name: Build
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
- name: set environment variables
|
|
|
|
|
uses: allenevans/set-env@v1.0.0
|
|
|
|
|
with:
|
|
|
|
|
GOPATH: ${{ github.workspace }}
|
|
|
|
|
GO111MODULE: off
|
|
|
|
|
|
|
|
|
|
- name: Set up Go 1.x
|
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
steps:
|
|
|
|
|
- name: set environment variables
|
|
|
|
|
uses: allenevans/set-env@v1.0.0
|
|
|
|
|
with:
|
|
|
|
|
go-version: ^1.14
|
|
|
|
|
id: go
|
|
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
with:
|
|
|
|
|
path: ./src/github.com/${{ github.repository }}
|
|
|
|
|
|
|
|
|
|
- name: Mod Tidy
|
|
|
|
|
run: go mod tidy
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: go build -v .
|
|
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
|
run: go test -v .
|
|
|
|
|
|
|
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
|
with:
|
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
|
prerelease: true
|
|
|
|
|
title: "Development Build"
|
|
|
|
|
files: |
|
|
|
|
|
orbbind
|
|
|
|
|
GOPATH: ${{ github.workspace }}
|
|
|
|
|
GO111MODULE: off
|
|
|
|
|
|
|
|
|
|
- name: Set up Go 1.x
|
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
with:
|
|
|
|
|
go-version: ^1.14
|
|
|
|
|
id: go
|
|
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
with:
|
|
|
|
|
path: ./src/github.com/${{ github.repository }}
|
|
|
|
|
|
|
|
|
|
- name: Mod Tidy
|
|
|
|
|
run: go mod tidy
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: go build -v .
|
|
|
|
|
|
|
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
|
with:
|
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
|
prerelease: true
|
|
|
|
|
title: "Development Build"
|
|
|
|
|
files: |
|
|
|
|
|
orbbind
|
|
|
|
|