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 7912a62 commit 24158d8
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/build_win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ jobs:
$procMain = Start-Process "msiexec" "/i `"go1.msi`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procMain.WaitForExit()
ls 'C:\'
ls 'C:\mingw32\bin'
$env:Path += ";C:\Program Files (x86)\Go\bin"
$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
cp bin/yubihsm-connector.exe artifact\
./bin/yubihsm-connector.exe version
./bin/yubihsm-connector.exe --help
# $env:Path += ";C:\Program Files (x86)\Go\bin"
#
# &'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
# cp bin/yubihsm-connector.exe artifact\
#
# ./bin/yubihsm-connector.exe version
# ./bin/yubihsm-connector.exe --help
#
# cd resources/win-installer
# & cmd /c '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsMSBuildCmd.bat" && msbuild YubiHSMConnectorInstaller.sln /p:Configuration=Release'
# cp x64/Release/yubihsm-connector-windows-amd64.msi ../../artifact/
Expand Down

0 comments on commit 24158d8

Please sign in to comment.