From 0d129f73a6594806744f15bef94fbe47efe727d5 Mon Sep 17 00:00:00 2001 From: lmbzib0 Date: Thu, 15 Feb 2024 13:52:33 +0100 Subject: [PATCH 1/2] compilation of 32bits ddl --- .github/workflows/build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70ae959..14c85d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,11 +113,11 @@ 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 }} @@ -135,15 +135,14 @@ 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)_$(go env GOARCH).dll ./cmd/a2l/a2l.go - uses: actions/upload-artifact@v4 with: name: windows From a477f4c24269b5c80b3025a867658708a9e85168 Mon Sep 17 00:00:00 2001 From: lmbzib0 Date: Thu, 15 Feb 2024 14:17:47 +0100 Subject: [PATCH 2/2] fix artifact name --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ab2278..d179d14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,10 +120,8 @@ jobs: 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 @@ -142,10 +140,10 @@ jobs: - shell: powershell run: | go get github.com/antlr4-go/antlr/v4 - $env:PATH="${{ matrix.path }};$env:PATH" ;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