diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 040775a..f44792d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 @@ -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 .