Skip to content

Commit 652d5a9

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 646ab02 commit 652d5a9

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
@@ -834,9 +834,8 @@ jobs:
834834
835835
# Install dependencies for cross compilation
836836
if [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
837-
# Install MinGW-w64 cross toolchain
838-
sudo apt-get install -y binutils-mingw-w64 gcc-mingw-w64 \
839-
g++-mingw-w64
837+
# Make MinGW-w64 posix cross toolchain available in PATH
838+
echo "/opt/mingw-w64-posix/bin" >> $GITHUB_PATH
840839
fi
841840
842841
# Set environment variables

0 commit comments

Comments
 (0)