mumble-voip_mumble/.github/workflows/build.sh

26 lines
464 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
buildDir="${GITHUB_WORKSPACE}/build"
mkdir "$buildDir"
cd "$buildDir"
# Run cmake with all necessary options
cmake -G Ninja \
-S "$GITHUB_WORKSPACE" \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DBUILD_NUMBER=$MUMBLE_BUILD_NUMBER \
$CMAKE_OPTIONS \
-DCMAKE_UNITY_BUILD=ON \
-Ddisplay-install-paths=ON \
$ADDITIONAL_CMAKE_OPTIONS \
$VCPKG_CMAKE_OPTIONS
# Actually build
cmake --build . --config $BUILD_TYPE