Update go.yml

This commit is contained in:
Winni Neessen 2021-03-20 19:16:27 +01:00 committed by GitHub
parent 2a970b9bce
commit 122ea00917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,23 @@ on:
branches: [ main ] branches: [ main ]
pull_request: pull_request:
branches: [ main ] branches: [ main ]
release:
types: [ created ]
jobs: jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin, freebsd, openbsd, netbsd]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.15
with:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -19,7 +34,7 @@ jobs:
go-version: 1.15 go-version: 1.15
- name: Build - name: Build
run: go build -v ./apg.go run: go build -v ./...
- name: Test - name: Test
run: go test -v ./apg_test.go run: go test -v ./...