Skip to content

Commit

Permalink
run darwin build in macos environment
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismichel committed Dec 11, 2023
1 parent 00def43 commit b6035e6
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,35 @@ name: Go
on: [push, pull_request]

jobs:
build:
build-linux:
strategy:
matrix:
go-version: [ '1.20.x', '1.21.x' ]
goos: [linux, darwin]
arch: [amd64, arm, arm64]
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
Expand Down

0 comments on commit b6035e6

Please sign in to comment.