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
|
|
|
|
|
|
|
# install dependencies
|
2024-10-02 01:12:40 +00:00
|
|
|
dependencies=(
|
|
|
|
"boost"
|
|
|
|
"cmake"
|
|
|
|
"miniupnpc"
|
|
|
|
"ninja"
|
|
|
|
"node"
|
|
|
|
"openssl@3"
|
|
|
|
"opus"
|
|
|
|
"pkg-config"
|
|
|
|
)
|
|
|
|
brew install "${dependencies[@]}"
|
2024-04-16 21:41:56 +00:00
|
|
|
|
|
|
|
# build
|
|
|
|
mkdir -p build
|
2024-06-14 21:37:46 +00:00
|
|
|
cmake \
|
2024-10-02 01:12:40 +00:00
|
|
|
-B build \
|
|
|
|
-G Ninja \
|
|
|
|
-S . \
|
2024-06-14 21:37:46 +00:00
|
|
|
-DBOOST_USE_STATIC=OFF \
|
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"
|