Compare commits
4 Commits
export_fun
...
actiontest
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d0a7ee791 | ||
|
|
8eebdefb7d | ||
|
|
52c17699ea | ||
|
|
aff35f3f86 |
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@@ -4,24 +4,43 @@ on: [pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go: [1.13.x]
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up Go ${{ matrix.go }}
|
||||||
|
uses: actions/setup-go@v2-beta
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go }}
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: setup make (Windows)
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
run: choco install make -y
|
||||||
|
|
||||||
|
- run: make test
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.13
|
- name: Set up Go 1.13
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v2-beta
|
||||||
with:
|
with:
|
||||||
go-version: 1.13
|
go-version: 1.13
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
||||||
- name: Set GOPATH
|
|
||||||
# temporary fix
|
|
||||||
# see https://github.com/actions/setup-go/issues/14
|
|
||||||
run: |
|
|
||||||
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
|
|
||||||
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: make test
|
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||||
|
|
||||||
- run: make xbuild-all
|
- run: make xbuild-all
|
||||||
|
|||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -12,19 +12,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.13
|
- name: Set up Go 1.13
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v2-beta
|
||||||
with:
|
with:
|
||||||
go-version: 1.13
|
go-version: 1.13
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # Needed in makefile for versioning
|
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # Needed in makefile for versioning
|
||||||
- name: Set GOPATH
|
|
||||||
# temporary fix
|
|
||||||
# see https://github.com/actions/setup-go/issues/14
|
|
||||||
run: |
|
|
||||||
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
|
|
||||||
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: make test
|
- run: make test
|
||||||
- run: make xbuild-all
|
- run: make xbuild-all
|
||||||
|
|||||||
Reference in New Issue
Block a user