2024-04-16 21:41:56 +00:00
|
|
|
# install dependencies for C++ analysis
|
2024-04-17 03:00:10 +00:00
|
|
|
set -e
|
2024-04-16 21:41:56 +00:00
|
|
|
|
|
|
|
# update pacman
|
2024-10-02 00:02:14 +00:00
|
|
|
pacman --noconfirm -Syu
|
2024-05-31 22:37:05 +00:00
|
|
|
|
|
|
|
# install dependencies
|
2024-10-02 01:12:40 +00:00
|
|
|
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-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 21:41:56 +00:00
|
|
|
|
|
|
|
# build
|
|
|
|
mkdir -p build
|
2024-06-24 16:12:31 +00:00
|
|
|
cmake \
|
2024-10-02 01:12:40 +00:00
|
|
|
-B build \
|
|
|
|
-G Ninja \
|
|
|
|
-S . \
|
2024-06-24 16:12:31 +00:00
|
|
|
-DBUILD_DOCS=OFF \
|
2024-10-02 01:12:40 +00:00
|
|
|
-DBUILD_WERROR=ON
|
|
|
|
ninja -C build
|
2024-04-16 21:41:56 +00:00
|
|
|
|
|
|
|
# skip autobuild
|
|
|
|
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"
|