File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,22 @@ jobs:
1212 fetch-depth : 0
1313 submodules : recursive
1414
15- - name : Install TDM-GCC
16- shell : powershell
15+ - name : Install MSYS2
16+ run : |
17+ choco install msys2 --params "/NoUpdate"
18+
19+ - name : Refresh MSYS2 installation
20+ run : |
21+ RefreshEnv
22+ C:\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syu"
23+
24+ - name : Install MinGW-w64 32-bit
25+ run : |
26+ C:\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S mingw-w64-i686-toolchain"
27+
28+ - name : Set MinGW-w64 environment variables
1729 run : |
18- Invoke-WebRequest -Uri https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm-1/gcc-10.3.0-tdm64-32.1z.exe -OutFile C:\tdm-gcc.exe
19- Start-Process -Wait -FilePath C:\tdm-gcc.exe
20- Remove-Item C:\tdm-gcc.exe
30+ ";C:\msys64\mingw32\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
2131
2232 - name : Setup Go
2333 uses : actions/setup-go@v2
3040 GOOS : windows
3141 GOARCH : 386
3242 CGO_ENABLED : 1
33- PATH : C:\TDM-GCC-64\bin;$env:PATH # Add TDM-GCC to PATH
3443 working-directory : plugin
3544 run : go build -ldflags '-s -w -linkmode external -extldflags -static-libgcc -extldflags -static-libstdc++' -o ../dist/xp_rpc.dll -buildmode=c-shared
3645
You can’t perform that action at this time.
0 commit comments