Skip to content

Commit

Permalink
Merge pull request #51 from f-koehler/github-action
Browse files Browse the repository at this point in the history
GitHub action
  • Loading branch information
naggie authored May 6, 2021
2 parents 2879588 + 724bd3c commit 033c19f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ "1.15", "1.16" ]
arch:
- "GOARCH=amd64"
- "GOARCH=arm GOARM=5"
- "GOARCH=arm GOARM=6"
- "GOARCH=arm GOARM=7"
- "GOARCH=arm64"
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Build
run: GOOS=linux CGO_ENABLED=0 ${{ matrix.arch }} go build -v ./cmd/dsnet.go

- name: Test
run: go test -v ./...

0 comments on commit 033c19f

Please sign in to comment.