currently disable arm compilation #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
strategy: | |
matrix: | |
go-version: [ '1.20.x', '1.21.x' ] | |
goos: [linux] | |
goarch: [amd64] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '${{matrix.go-version}}' | |
- name: Install dependencies | |
run: go get ./... | |
- name: Build Client | |
run: env CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v client/main.go | |
- name: Build Server | |
run: env CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v server/main.go | |
- name: Test with the Go CLI | |
run: env CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go run github.com/onsi/ginkgo/v2/ginkgo -r | |
build-macos: | |
strategy: | |
matrix: | |
go-version: [ '1.20.x', '1.21.x' ] | |
goos: [darwin] | |
goarch: [amd64] | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '${{matrix.go-version}}' | |
- name: Install dependencies | |
run: go get ./... | |
- name: Build Client | |
run: env CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v client/main.go | |
- name: Build Server | |
run: env CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v server/main.go | |
- name: Test with the Go CLI | |
run: env CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go run github.com/onsi/ginkgo/v2/ginkgo -r |