Add builds for windows and macos

This commit is contained in:
Marcel Schramm 2019-08-14 23:22:40 +02:00
parent 0fb589b4c7
commit 62979e120b
No known key found for this signature in database
GPG Key ID: 05971054C70EEDC7
1 changed files with 34 additions and 6 deletions

View File

@ -17,9 +17,37 @@ jobs:
env:
GO111MODULE: on
run: go test ./... && go build .
# windows:
# name: Windows build
# runs-on: windows-latest
# macos:
# name: MacOS build
# runs-on: macOS-latest
windows:
name: Windows build
runs-on: windows-latest
steps:
- name: Go 1.12 build Windows
uses: actions/setup-go@v1
with:
version: 1.12
- name: Checkout master
uses: actions/checkout@master
- name: Run tests and build
env:
GO111MODULE: on
run: go test ./...; go build .
shell: powershell
macos:
name: Mac OS build
runs-on: macos-latest
steps:
- name: Go 1.12 build Mac OS
uses: actions/setup-go@v1
with:
version: 1.12
- name: Checkout master
uses: actions/checkout@master
- name: Run tests and build
env:
GO111MODULE: on
run: go test ./... && go build .