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:
Nashwan Azhari 2023-08-16 13:55:57 +03:00 committed by Akihiro Suda
parent 0f043ae434
commit c883410c96
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A

View File

@ -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