2024-04-16 17:41:56 -04:00
|
|
|
# install dependencies for C++ analysis
|
2024-04-16 23:00:10 -04:00
|
|
|
set -e
|
2024-04-16 17:41:56 -04:00
|
|
|
|
|
|
|
# update pacman
|
2024-10-01 20:02:14 -04:00
|
|
|
pacman --noconfirm -Syu
|
2024-05-31 18:37:05 -04:00
|
|
|
|
|
|
|
# install dependencies
|
2024-10-01 21:12:40 -04:00
|
|
|
dependencies=(
|
|
|
|
"git"
|
2024-10-04 04:42:16 +03:00
|
|
|
"mingw-w64-ucrt-x86_64-boost"
|
2024-10-01 21:12:40 -04:00
|
|
|
"mingw-w64-ucrt-x86_64-cmake"
|
|
|
|
"mingw-w64-ucrt-x86_64-cppwinrt"
|
|
|
|
"mingw-w64-ucrt-x86_64-curl-winssl"
|
|
|
|
"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 -S --noconfirm "${dependencies[@]}"
|
2024-04-16 17:41:56 -04:00
|
|
|
|
|
|
|
# build
|
|
|
|
mkdir -p build
|
2024-06-24 12:12:31 -04:00
|
|
|
cmake \
|
2024-10-01 21:12:40 -04:00
|
|
|
-B build \
|
|
|
|
-G Ninja \
|
|
|
|
-S . \
|
2024-06-24 12:12:31 -04:00
|
|
|
-DBUILD_DOCS=OFF \
|
2024-10-01 21:12:40 -04:00
|
|
|
-DBUILD_WERROR=ON
|
|
|
|
ninja -C build
|
2024-04-16 17:41:56 -04:00
|
|
|
|
|
|
|
# skip autobuild
|
|
|
|
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"
|