Skip to content

Commit af677fe

Browse files
authored
Merge branch 'LizardByte:master' into disable_audio
2 parents 8e495d3 + e9bce25 commit af677fe

File tree

2 files changed

+70
-14
lines changed

2 files changed

+70
-14
lines changed

.codeql-prebuild-cpp-Windows.sh

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ set -e
44
# update pacman
55
pacman --noconfirm -Syu
66

7+
gcc_version="14.2.0-3"
8+
9+
broken_deps=(
10+
"mingw-w64-ucrt-x86_64-gcc"
11+
"mingw-w64-ucrt-x86_64-gcc-libs"
12+
)
13+
14+
tarballs=""
15+
for dep in "${broken_deps[@]}"; do
16+
tarball="${dep}-${gcc_version}-any.pkg.tar.zst"
17+
18+
# download and install working version
19+
wget https://repo.msys2.org/mingw/ucrt64/${tarball}
20+
21+
tarballs="${tarballs} ${tarball}"
22+
done
23+
24+
# install broken dependencies
25+
if [ -n "$tarballs" ]; then
26+
pacman -U --noconfirm ${tarballs}
27+
fi
28+
729
# install dependencies
830
dependencies=(
931
"git"
@@ -20,7 +42,8 @@ dependencies=(
2042
"mingw-w64-ucrt-x86_64-opus"
2143
"mingw-w64-ucrt-x86_64-toolchain"
2244
)
23-
pacman -S --noconfirm "${dependencies[@]}"
45+
46+
pacman -Syu --noconfirm --ignore="$(IFS=,; echo "${broken_deps[*]}")" "${dependencies[@]}"
2447

2548
# build
2649
mkdir -p build

.github/workflows/CI.yml

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)