Skip to content

Commit a61275b

Browse files
authored
Workaround for #446 after windows-2022 runner image updates (#462)
* Windows CI: chocolatey installs pinned version of mingw, GITHUB_PATH updated so PATH points to that version in following steps. Another workaround for problems with GCC 14/GDB 16 after GitHub windows-2020 runner image was updated to use them. This only buys more time and doesn't fix the underlying problem. * Update to windows-latest now that windows-2022 doesn't help anymore. --------- Signed-off-by: Jens Reinecke <[email protected]>
1 parent 2628bb3 commit a61275b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/build-pr.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,20 @@ jobs:
5050
run: git diff --exit-code
5151
Build-on-Windows:
5252
name: Build & Test on Windows
53-
runs-on: Windows-2022
53+
runs-on: windows-latest
5454
steps:
5555
- uses: actions/checkout@v4
5656
- uses: actions/setup-node@v4
5757
with:
5858
node-version: '20'
59+
# Install build tools and update PATH through GITHUB_PATH for next steps
5960
- name: Install GCC & GDB & other build essentials
6061
run: |
61-
choco install mingw
62+
choco install mingw --version=11.2.0.07112021
63+
$chocoMingwBin = Join-Path $env:ChocolateyInstall 'lib\mingw\tools\install\mingw64\bin'
64+
echo $chocoMingwBin >> $env:GITHUB_PATH
65+
- name: Echo Tool Versions
66+
run: |
6267
gdb --version
6368
gcc --version
6469
gdbserver --version

.github/workflows/build-push.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,20 @@ jobs:
5151
run: git diff --exit-code
5252
Build-on-Windows:
5353
name: Build & Test on Windows
54-
runs-on: Windows-2022
54+
runs-on: windows-latest
5555
steps:
5656
- uses: actions/checkout@v4
5757
- uses: actions/setup-node@v4
5858
with:
5959
node-version: '20'
60+
# Install build tools and update PATH through GITHUB_PATH for next steps
6061
- name: Install GCC & GDB & other build essentials
6162
run: |
62-
choco install mingw
63+
choco install mingw --version=11.2.0.07112021
64+
$chocoMingwBin = Join-Path $env:ChocolateyInstall 'lib\mingw\tools\install\mingw64\bin'
65+
echo $chocoMingwBin >> $env:GITHUB_PATH
66+
- name: Echo Tool Versions
67+
run: |
6368
gdb --version
6469
gcc --version
6570
gdbserver --version

0 commit comments

Comments
 (0)