Skip to content

run darwin build in macos environment #2

run darwin build in macos environment

run darwin build in macos environment #2

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build-linux:
strategy:
matrix:
go-version: [ '1.20.x', '1.21.x' ]
goos: [linux]
goarch: [amd64, arm64]
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 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v client/main.go
- name: Build Server
run: env GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v server/main.go
- name: Test with the Go CLI
run: env 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, arm64]
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 GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v client/main.go
- name: Build Server
run: env GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go build -v server/main.go
- name: Test with the Go CLI
run: env GOOS=${{matrix.goos}} GOARCH=${{matrix.goarch}} go run github.com/onsi/ginkgo/v2/ginkgo -r