Skip to content

Commit

Permalink
Re-enable MacOS support, add Windows 32-bit artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbsog0 committed Feb 16, 2024
1 parent e476eca commit d34c601
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 57 deletions.
118 changes: 61 additions & 57 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,29 @@ jobs:
- run: |
go get github.com/antlr4-go/antlr/v4
go test ./cmd/a2l/...
# test-mac:
# runs-on: macos-latest-xlarge
# needs:
# - generate-antlr-sources
# - generate-grpc-sources
# steps:
# - uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: antlr4
# path: pkg/a2l/parser
# - uses: actions/download-artifact@v4
# with:
# name: grpc
# path: pkg/a2l
# - name: Set up Go 1.21
# uses: actions/setup-go@v4
# with:
# go-version: "1.21"
# cache: true
# - run: |
# go get github.com/antlr4-go/antlr/v4
# go test ./cmd/a2l/...
test-mac:
runs-on: macos-latest-xlarge
needs:
- generate-antlr-sources
- generate-grpc-sources
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: antlr4
path: pkg/a2l/parser
- uses: actions/download-artifact@v4
with:
name: grpc
path: pkg/a2l
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: true
- run: |
go get github.com/antlr4-go/antlr/v4
go test ./cmd/a2l/...
build-linux:
runs-on: ubuntu-22.04
needs:
Expand Down Expand Up @@ -147,34 +147,34 @@ jobs:
path: |
*.dll
*.h
# build-mac:
# runs-on: macos-latest-xlarge
# needs:
# - test-mac
# steps:
# - uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: antlr4
# path: pkg/a2l/parser
# - uses: actions/download-artifact@v4
# with:
# name: grpc
# path: pkg/a2l
# - name: Set up Go 1.21
# uses: actions/setup-go@v4
# with:
# go-version: "1.21"
# cache: true
# - run: |
# go get github.com/antlr4-go/antlr/v4
# go build --buildmode=c-shared -o a2l_grpc_$(go env GOOS)_$(go env GOARCH).dylib ./cmd/a2l/a2l.go
# - uses: actions/upload-artifact@v4
# with:
# name: mac
# path: |
# *.dylib
# *.h
build-mac:
runs-on: macos-latest-xlarge
needs:
- test-mac
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: antlr4
path: pkg/a2l/parser
- uses: actions/download-artifact@v4
with:
name: grpc
path: pkg/a2l
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: true
- run: |
go get github.com/antlr4-go/antlr/v4
go build --buildmode=c-shared -o a2l_grpc_$(go env GOOS)_$(go env GOARCH).dylib ./cmd/a2l/a2l.go
- uses: actions/upload-artifact@v4
with:
name: mac
path: |
*.dylib
*.h
export-protobuf-definitions:
runs-on: ubuntu-22.04
steps:
Expand All @@ -191,7 +191,7 @@ jobs:
needs:
- build-linux
- build-windows
# - build-mac
- build-mac
- export-protobuf-definitions
if: startsWith(github.ref, 'refs/tags/v')
steps:
Expand All @@ -203,12 +203,16 @@ jobs:
path: a2l_grpc
- uses: actions/download-artifact@v4
with:
name: windows
name: windows_386
path: a2l_grpc
- uses: actions/download-artifact@v4
with:
name: windows_amd64
path: a2l_grpc
- uses: actions/download-artifact@v4
with:
name: mac
path: a2l_grpc
# - uses: actions/download-artifact@v4
# with:
# name: mac
# path: a2l_grpc
- uses: actions/download-artifact@v4
with:
name: protobuf
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Change log

- Add support for 32-bit Windows OS.

0 comments on commit d34c601

Please sign in to comment.