Skip to content

Commit 3e76ae0

Browse files
Merge pull request #5 from nwn2dev/feature/ssl
Changed the location
2 parents 7eb24c1 + de01215 commit 3e76ae0

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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
@@ -30,7 +40,6 @@ jobs:
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

0 commit comments

Comments
 (0)