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 <nazhari@cloudbasesolutions.com>
This commit is contained in:
parent
0f043ae434
commit
c883410c96
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -218,6 +218,12 @@ jobs:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# NOTE(aznashwan): starting with Golang 1.21, the windows-2019 GitHub runner's
|
||||
# builtin MinGW version leads to DLL loading errors during runtime.
|
||||
- name: Upgrade MinGW on Windows 2019
|
||||
if: matrix.os == 'windows-2019'
|
||||
run: choco upgrade mingw
|
||||
|
||||
- name: Make
|
||||
run: |
|
||||
make build
|
||||
@ -269,6 +275,12 @@ jobs:
|
||||
|
||||
- run: script/setup/install-dev-tools
|
||||
|
||||
# NOTE(aznashwan): starting with Golang 1.21, the windows-2019 GitHub runner's
|
||||
# builtin MinGW version leads to DLL loading errors during runtime.
|
||||
- name: Upgrade MinGW on Windows 2019
|
||||
if: matrix.os == 'windows-2019'
|
||||
run: choco upgrade mingw
|
||||
|
||||
- name: Binaries
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
|
Loading…
Reference in New Issue
Block a user