Compare commits

...

4 Commits

Author SHA1 Message Date
Ilir Bekteshi
7d0a7ee791 [action] Remove MacOS from matrix 2020-04-16 16:40:33 +02:00
Ilir Bekteshi
8eebdefb7d [action] go@beta to clean WFs from workarounds 2020-04-16 16:21:30 +02:00
Ilir Bekteshi
52c17699ea [action] install make on windows 2020-04-16 16:01:52 +02:00
Ilir Bekteshi
aff35f3f86 [action] test on supported platforms (#319) 2020-04-16 16:01:52 +02:00
2 changed files with 30 additions and 18 deletions

View File

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

View File

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