Skip to content

Commit

Permalink
Merge pull request #5 from iromzy/develop
Browse files Browse the repository at this point in the history
add 32 bits dll for windows
  • Loading branch information
Sauci committed Feb 16, 2024
2 parents 6c0e661 + a477f4c commit e476eca
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,15 @@ jobs:
matrix:
mingw: [ "MINGW32", "MINGW64" ]
include:
# - mingw: "MINGW32"
# package: "mingw-w64-i686"
# GOARCH: 386
- mingw: "MINGW32"
path: "C:/msys64/mingw32/bin"
GOARCH: 386
- mingw: "MINGW64"
package: "mingw-w64-x86_64"
path: "C:/msys64/usr/bin"
GOARCH: amd64
env:
MSYSTEM: ${{ matrix.mingw }}
CHERE_INVOKING: 1
GOARCH: ${{ matrix.GOARCH }}
CGO_ENABLED: 1
GOARCH: ${{ matrix.GOARCH }}
name: MSYS2 ${{ matrix.mingw }}
steps:
- uses: actions/checkout@v4
Expand All @@ -135,18 +133,17 @@ jobs:
with:
name: grpc
path: pkg/a2l
- name: Set up shell
run: echo ::add-path::C:\msys64\usr\bin\
shell: pwsh
- name: Print system version
shell: powershell
run: |
uname
- run: |
- shell: powershell
run: |
go get github.com/antlr4-go/antlr/v4
go build --buildmode=c-shared -o a2l_grpc_$(go env GOOS)_$(go env GOARCH).dll ./cmd/a2l/a2l.go
$env:PATH="${{ matrix.path }};$env:PATH" ;go build --buildmode=c-shared -o a2l_grpc_$(go env GOOS)_${{ matrix.GOARCH }}.dll ./cmd/a2l/a2l.go
- uses: actions/upload-artifact@v4
with:
name: windows
name: windows_${{ matrix.GOARCH }}
path: |
*.dll
*.h
Expand Down

0 comments on commit e476eca

Please sign in to comment.