Skip to content

Commit

Permalink
add Mac OS support
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbsog0 committed Dec 13, 2023
1 parent b9c4627 commit 544b61d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,30 @@ jobs:
- run: |
go get github.com/antlr4-go/antlr/v4
go test ./cmd/a2l/...
test-macos:
runs-on: macOS-10.14
needs:
- generate-antlr-sources
- generate-grpc-sources
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: antlr4
path: pkg/a2l/parser
- uses: actions/download-artifact@v3
with:
name: grpc
path: pkg/a2l
- run: |
go get github.com/antlr4-go/antlr/v4
go test ./cmd/a2l/...
build-linux:
runs-on: ubuntu-22.04
needs:
- test-linux
- test-windows
- test-macos
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
Expand All @@ -88,6 +107,7 @@ jobs:
needs:
- test-linux
- test-windows
- test-macos
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
Expand All @@ -107,6 +127,31 @@ jobs:
path: |
*.dll
*.h
build-macos:
runs-on: macOS-10.14
needs:
- test-linux
- test-windows
- test-macos
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: antlr4
path: pkg/a2l/parser
- uses: actions/download-artifact@v3
with:
name: grpc
path: pkg/a2l
- run: |
go get github.com/antlr4-go/antlr/v4
go build --buildmode=c-shared -o a2l_grpc_$(go env GOOS)_$(go env GOARCH).so ./cmd/a2l/a2l.go
- uses: actions/upload-artifact@v3
with:
name: macos
path: |
*.so
*.h
export-protobuf-definitions:
runs-on: ubuntu-22.04
steps:
Expand All @@ -123,6 +168,7 @@ jobs:
needs:
- build-linux
- build-windows
- build-macos
- export-protobuf-definitions
if: startsWith(github.ref, 'refs/tags/v')
steps:
Expand All @@ -136,6 +182,10 @@ jobs:
with:
name: windows
path: a2l_grpc
- uses: actions/download-artifact@v3
with:
name: macos
path: a2l_grpc
- uses: actions/download-artifact@v3
with:
name: protobuf
Expand Down

0 comments on commit 544b61d

Please sign in to comment.