From b6035e685101ee654fc09d63dc8c4b77d2378bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michel?= Date: Mon, 11 Dec 2023 16:15:40 +0000 Subject: [PATCH] run darwin build in macos environment --- .github/workflows/build.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20addaa..45d62de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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