Switch to gh-actions (WIP 1/2) (#67)
This commit is contained in:
36
.github/workflows/test.yaml
vendored
Normal file
36
.github/workflows/test.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
native-os-build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: "1.13"
|
||||
- name: Build native
|
||||
run: GOARCH=amd64 go build -v ./...
|
||||
shell: bash
|
||||
- name: Run unit tests
|
||||
run: go test -v ./...
|
||||
shell: bash
|
||||
- name: Cross-build for 386
|
||||
if: matrix.os != 'macOS-latest'
|
||||
run: GOARCH=386 go build -v ./...
|
||||
shell: bash
|
||||
- name: Cross-build for arm
|
||||
if: matrix.os != 'macOS-latest'
|
||||
run: GOARCH=arm go build -v ./...
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user