Skip to content

Commit 2f4b768

Browse files
committed
ci: Use SDK build image MinGW-w64 installation
This commit updates the CI workflow to use the more up-to-date MinGW-w64 toolchain (MinGW 12.0.0, Binutils 2.42, GCC 13.2.0) from the SDK build Docker image instead of installing the outdated distro default version. Note that MinGW 12.0.0 defaults to UCRT on Windows. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 4f987f0 commit 2f4b768

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ jobs:
475475
476476
# Install dependencies for cross compilation
477477
if [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
478-
# Install MinGW-w64 cross toolchain
479-
sudo apt-get install -y binutils-mingw-w64 gcc-mingw-w64 \
480-
g++-mingw-w64
478+
# Make MinGW-w64 win32 cross toolchain available in PATH
479+
echo "/opt/mingw-w64-win32/bin" >> $GITHUB_PATH
480+
export PATH="/opt/mingw-w64-win32/bin:$PATH"
481481
482482
# Build and install libboost-regex for MinGW-w64 host
483483
## Check out Boost library source code
@@ -833,9 +833,8 @@ jobs:
833833
834834
# Install dependencies for cross compilation
835835
if [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
836-
# Install MinGW-w64 cross toolchain
837-
sudo apt-get install -y binutils-mingw-w64 gcc-mingw-w64 \
838-
g++-mingw-w64
836+
# Make MinGW-w64 posix cross toolchain available in PATH
837+
echo "/opt/mingw-w64-posix/bin" >> $GITHUB_PATH
839838
fi
840839
841840
# Set environment variables

0 commit comments

Comments
 (0)