Skip to content

Commit

Permalink
ci: Use SDK build image MinGW-w64 installation
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stephanosio committed Oct 28, 2024
1 parent 646ab02 commit 652d5a9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,9 @@ jobs:
# Install dependencies for cross compilation
if [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
# Install MinGW-w64 cross toolchain
sudo apt-get install -y binutils-mingw-w64 gcc-mingw-w64 \
g++-mingw-w64
# Make MinGW-w64 win32 cross toolchain available in PATH
echo "/opt/mingw-w64-win32/bin" >> $GITHUB_PATH
export PATH="/opt/mingw-w64-win32/bin:$PATH"
# Build and install libboost-regex for MinGW-w64 host
## Check out Boost library source code
Expand Down Expand Up @@ -834,9 +834,8 @@ jobs:
# Install dependencies for cross compilation
if [ "${{ matrix.host.name }}" == "windows-x86_64" ]; then
# Install MinGW-w64 cross toolchain
sudo apt-get install -y binutils-mingw-w64 gcc-mingw-w64 \
g++-mingw-w64
# Make MinGW-w64 posix cross toolchain available in PATH
echo "/opt/mingw-w64-posix/bin" >> $GITHUB_PATH
fi
# Set environment variables
Expand Down

0 comments on commit 652d5a9

Please sign in to comment.