Skip to content

Commit

Permalink
Use gcc x86
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Apr 24, 2024
1 parent b4dd6d0 commit 995a2e2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build_win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,25 @@ jobs:
Invoke-WebRequest -Uri https://go.dev/dl/go1.22.2.windows-386.msi -OutFile go1.msi -UseBasicParsing
$env:GOOS="windows"
$env:GOARCH="386"
$env:GOHOSTOS=$env:GOOS
$env:GOHOSTARCH=$env:GOARCH
$log = "$env:GITHUB_WORKSPACE\install.log"
$procMain = Start-Process "msiexec" "/i `"go1.msi`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procMain.WaitForExit()
ls 'C:\mingw32\bin'
$env:Path += "C:\mingw32\bin;C:\Program Files (x86)\Go\bin;$env:Path"
$env:GOOS="windows"
$env:GOARCH="386"
$env:GOHOSTOS=$env:GOOS
$env:GOHOSTARCH=$env:GOARCH
$env:CC=x86_64-w64-mingw32-gcc
&'C:\Program Files (x86)\Go\bin\go.exe' version
&'C:\Program Files (x86)\Go\bin\go.exe' mod tidy -go="1.16"
&'C:\Program Files (x86)\Go\bin\go.exe' mod tidy -go="1.17"
&'C:\Program Files (x86)\Go\bin\go.exe' generate ./...
&'C:\Program Files (x86)\Go\bin\go.exe' build -o bin/yubihsm-connector.exe
&'C:\Program Files (x86)\Go\bin\go.exe' build -buildmode=exe -o bin/yubihsm-connector.exe
cp bin/yubihsm-connector.exe artifact\
./bin/yubihsm-connector.exe version
Expand Down

0 comments on commit 995a2e2

Please sign in to comment.