mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Some checks failed
CI / GitHub Env Debug (push) Has been cancelled
CI / Setup Release (push) Has been cancelled
CI / Linux Flatpak (aarch64, ubuntu-22.04-arm) (push) Has been cancelled
CI / Linux Flatpak (x86_64, ubuntu-22.04) (push) Has been cancelled
CI / Linux AppImage (push) Has been cancelled
CI / Homebrew (macos-13) (push) Has been cancelled
CI / Homebrew (macos-14) (push) Has been cancelled
CI / Homebrew (ubuntu-latest) (push) Has been cancelled
CI / Homebrew (ubuntu-latest (Release)) (push) Has been cancelled
CI / Windows (push) Has been cancelled
CI Docker / Check Dockerfiles (push) Has been cancelled
CI Docker / Setup Release (push) Has been cancelled
CI Docker / Docker${{ matrix.tag }} (push) Has been cancelled
CodeQL / Get language matrix (push) Has been cancelled
CodeQL / Analyze (${{ matrix.name }}) (push) Has been cancelled
Build GH-Pages / prep (push) Has been cancelled
Build GH-Pages / call-jekyll-build (push) Has been cancelled
60 lines
1.2 KiB
Bash
60 lines
1.2 KiB
Bash
# install dependencies for C++ analysis
|
|
set -e
|
|
|
|
# update pacman
|
|
pacman --noconfirm -Syu
|
|
|
|
gcc_version="14.2.0-3"
|
|
|
|
broken_deps=(
|
|
"mingw-w64-ucrt-x86_64-gcc"
|
|
"mingw-w64-ucrt-x86_64-gcc-libs"
|
|
)
|
|
|
|
tarballs=""
|
|
for dep in "${broken_deps[@]}"; do
|
|
tarball="${dep}-${gcc_version}-any.pkg.tar.zst"
|
|
|
|
# download and install working version
|
|
wget https://repo.msys2.org/mingw/ucrt64/${tarball}
|
|
|
|
tarballs="${tarballs} ${tarball}"
|
|
done
|
|
|
|
# install broken dependencies
|
|
if [ -n "$tarballs" ]; then
|
|
pacman -U --noconfirm ${tarballs}
|
|
fi
|
|
|
|
# install dependencies
|
|
dependencies=(
|
|
"git"
|
|
"mingw-w64-ucrt-x86_64-cmake"
|
|
"mingw-w64-ucrt-x86_64-cppwinrt"
|
|
"mingw-w64-ucrt-x86_64-curl-winssl"
|
|
"mingw-w64-ucrt-x86_64-MinHook"
|
|
"mingw-w64-ucrt-x86_64-miniupnpc"
|
|
"mingw-w64-ucrt-x86_64-nlohmann-json"
|
|
"mingw-w64-ucrt-x86_64-nodejs"
|
|
"mingw-w64-ucrt-x86_64-nsis"
|
|
"mingw-w64-ucrt-x86_64-onevpl"
|
|
"mingw-w64-ucrt-x86_64-openssl"
|
|
"mingw-w64-ucrt-x86_64-opus"
|
|
"mingw-w64-ucrt-x86_64-toolchain"
|
|
)
|
|
|
|
pacman -Syu --noconfirm --ignore="$(IFS=,; echo "${broken_deps[*]}")" "${dependencies[@]}"
|
|
|
|
# build
|
|
mkdir -p build
|
|
cmake \
|
|
-B build \
|
|
-G Ninja \
|
|
-S . \
|
|
-DBUILD_DOCS=OFF \
|
|
-DBUILD_WERROR=ON
|
|
ninja -C build
|
|
|
|
# skip autobuild
|
|
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"
|