Skip to content

Commit

Permalink
Enable windows build in github actions
Browse files Browse the repository at this point in the history
Don't try to cross compile for Linux:{ARM,386} on windows.

Closes: #17 [via git-merge-pr]
  • Loading branch information
psanford committed Jul 12, 2020
1 parent a54ca8a commit 458e4cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ jobs:

build:
name: Build
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 3
strategy:
matrix:
go-version: [1.13.11, 1.14.3]
go-version: [1.13.12, 1.14.4, 1.15beta1]
os: [ubuntu-latest, windows-latest]

steps:
- name: Set up Go
Expand All @@ -28,6 +29,8 @@ jobs:

- name: Cross test for i386
run: env GOOS=linux GOARCH=386 go test -v ./... --timeout 60s
if: ${{ runner.os == 'Linux' }}

- name: Cross compile for arm (RPI)
run: env GOOS=linux GOARCH=arm GOARM=5 go build -v ./...
if: ${{ runner.os == 'Linux' }}

0 comments on commit 458e4cf

Please sign in to comment.