Skip to content

Commit

Permalink
Update GitHub workflow (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepro authored Jul 18, 2021
1 parent 8450db4 commit 1a5e969
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 40 deletions.
78 changes: 38 additions & 40 deletions .github/workflows/kdo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,48 @@ name: kdo

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

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build Darwin
env:
GOOS: darwin
GOARCH: amd64
working-directory: cli/kdo
run: go build -o bin/darwin/amd64/kdo -v .

- name: Build Linux
env:
GOOS: linux
GOARCH: amd64
working-directory: cli/kdo
run: go build -o bin/linux/amd64/kdo -v .

- name: Build Windows
env:
GOOS: windows
GOARCH: amd64
working-directory: cli/kdo
run: go build -o bin/windows/amd64/kdo.exe -v .

- name: Test
run: go test -v ./...
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build Darwin
env:
GOOS: darwin
GOARCH: amd64
working-directory: cli/kdo
run: go build -o bin/darwin/amd64/kdo -v .

- name: Build Linux
env:
GOOS: linux
GOARCH: amd64
working-directory: cli/kdo
run: go build -o bin/linux/amd64/kdo -v .

- name: Build Windows
env:
GOOS: windows
GOARCH: amd64
working-directory: cli/kdo
run: go build -o bin/windows/amd64/kdo.exe -v .

- name: Test
run: go test -v ./...
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJ
github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/ishidawataru/sctp v0.0.0-20191218070446-00ab2ac2db07/go.mod h1:co9pwDoBCm1kGxawmb4sPq0cSIOOWNPT4KnHotMP1Zg=
github.com/ishidawataru/sctp v0.0.0-20210226210310-f2269e66cdee/go.mod h1:co9pwDoBCm1kGxawmb4sPq0cSIOOWNPT4KnHotMP1Zg=
Expand Down

0 comments on commit 1a5e969

Please sign in to comment.