Skip to content

Commit

Permalink
Add all major OS to github Go workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatk committed Nov 13, 2020
1 parent 8259cb3 commit 0cc811e
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ jobs:

build:
name: Build
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
cgo_enabled: 0
- os: windows-latest
cgo_enabled: 1
- os: macos-latest
cgo_enabled: 1
steps:

- name: Set up Go 1.x
Expand All @@ -21,15 +31,12 @@ jobs:
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
run: go get -v -t -d ./...

- name: Build
run: CGO_ENABLED=0 go build -v github.com/pqsec/passkb/cmd/passkb
run: go build -v github.com/pqsec/passkb/cmd/passkb
env:
CGO_ENABLED: ${{ matrix.cgo_enabled }}

- name: Test
run: go test -v .

0 comments on commit 0cc811e

Please sign in to comment.