mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-08 23:42:53 +01:00
Updated Github go.yml
This commit is contained in:
parent
2a970b9bce
commit
2adbcad27c
1 changed files with 17 additions and 2 deletions
19
.github/workflows/go.yml
vendored
19
.github/workflows/go.yml
vendored
|
@ -5,8 +5,23 @@ on:
|
|||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
release:
|
||||
types: [ created ]
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -19,7 +34,7 @@ jobs:
|
|||
go-version: 1.15
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./apg.go
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./apg_test.go
|
||||
run: go test -v ./...
|
Loading…
Reference in a new issue