Skip to content

Commit 9e24388

Browse files
aznashwanakhilerm
authored andcommitted
CI: Explicitly upgrade MinGW on Windows 2019 GitHub runners.
The default version of MinGW and GCC on the GitHub-hosted Windows 2019 runners compile fine but lead to linker errors during runtime. Signed-off-by: Nashwan Azhari <[email protected]> (cherry picked from commit c883410) Signed-off-by: Akhil Mohan <[email protected]>
1 parent 5b23a41 commit 9e24388

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ jobs:
195195
steps:
196196
- uses: actions/checkout@v4
197197
- uses: ./.github/actions/install-go
198+
199+
# NOTE(aznashwan): starting with Golang 1.21, the windows-2019 GitHub runner's
200+
# builtin MinGW version leads to DLL loading errors during runtime.
201+
- name: Upgrade MinGW on Windows 2019
202+
if: matrix.os == 'windows-2019'
203+
run: choco upgrade mingw
204+
198205
- name: Make
199206
run: |
200207
make build
@@ -244,6 +251,12 @@ jobs:
244251
245252
- run: script/setup/install-dev-tools
246253

254+
# NOTE(aznashwan): starting with Golang 1.21, the windows-2019 GitHub runner's
255+
# builtin MinGW version leads to DLL loading errors during runtime.
256+
- name: Upgrade MinGW on Windows 2019
257+
if: matrix.os == 'windows-2019'
258+
run: choco upgrade mingw
259+
247260
- name: Binaries
248261
env:
249262
CGO_ENABLED: 1

0 commit comments

Comments
 (0)