@@ -825,26 +825,59 @@ jobs:
825825 Get-Content -Path monitor_list.txt
826826
827827 - name : Setup Dependencies Windows
828+ # if a dependency needs to be pinned, see https://github.com/LizardByte/build-deps/pull/186
828829 uses : msys2/setup-msys2@v2
829830 with :
830831 msystem : ucrt64
831832 update : true
832833 install : >-
833- git
834- mingw-w64-ucrt-x86_64-cmake
835- mingw-w64-ucrt-x86_64-cppwinrt
836- mingw-w64-ucrt-x86_64-curl-winssl
837- mingw-w64-ucrt-x86_64-graphviz
838- mingw-w64-ucrt-x86_64-MinHook
839- mingw-w64-ucrt-x86_64-miniupnpc
840- mingw-w64-ucrt-x86_64-nodejs
841- mingw-w64-ucrt-x86_64-nsis
842- mingw-w64-ucrt-x86_64-onevpl
843- mingw-w64-ucrt-x86_64-openssl
844- mingw-w64-ucrt-x86_64-opus
845- mingw-w64-ucrt-x86_64-toolchain
846834 wget
847835
836+ - name : Update Windows dependencies
837+ env :
838+ gcc_version : " 14.2.0-3"
839+ shell : msys2 {0}
840+ run : |
841+ broken_deps=(
842+ "mingw-w64-ucrt-x86_64-gcc"
843+ "mingw-w64-ucrt-x86_64-gcc-libs"
844+ )
845+
846+ tarballs=""
847+ for dep in "${broken_deps[@]}"; do
848+ tarball="${dep}-${gcc_version}-any.pkg.tar.zst"
849+
850+ # download and install working version
851+ wget https://repo.msys2.org/mingw/ucrt64/${tarball}
852+
853+ tarballs="${tarballs} ${tarball}"
854+ done
855+
856+ # install broken dependencies
857+ if [ -n "$tarballs" ]; then
858+ pacman -U --noconfirm ${tarballs}
859+ fi
860+
861+ # install dependencies
862+ dependencies=(
863+ "git"
864+ "mingw-w64-ucrt-x86_64-cmake"
865+ "mingw-w64-ucrt-x86_64-cppwinrt"
866+ "mingw-w64-ucrt-x86_64-curl-winssl"
867+ "mingw-w64-ucrt-x86_64-graphviz"
868+ "mingw-w64-ucrt-x86_64-MinHook"
869+ "mingw-w64-ucrt-x86_64-miniupnpc"
870+ "mingw-w64-ucrt-x86_64-nlohmann-json"
871+ "mingw-w64-ucrt-x86_64-nodejs"
872+ "mingw-w64-ucrt-x86_64-nsis"
873+ "mingw-w64-ucrt-x86_64-onevpl"
874+ "mingw-w64-ucrt-x86_64-openssl"
875+ "mingw-w64-ucrt-x86_64-opus"
876+ "mingw-w64-ucrt-x86_64-toolchain"
877+ )
878+
879+ pacman -Syu --noconfirm --ignore="$(IFS=,; echo "${broken_deps[*]}")" "${dependencies[@]}"
880+
848881 - name : Install Doxygen
849882 # GCC compiled doxygen has issues when running graphviz
850883 env :
0 commit comments