- move script as asset because they are not build script - create new script directory for "User Compile" method because github action need to build with gtest. - change compile manual for this change. - modify external dependency location in github action and gitignore.
20 lines
384 B
Bash
20 lines
384 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Create build directory and enter it
|
|
mkdir bin
|
|
cd bin
|
|
# Create internal build and install directory, then enter it
|
|
mkdir build
|
|
mkdir install
|
|
cd build
|
|
|
|
# Build in Release mode
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DYYCC_BUILD_TEST=ON -DGTest_ROOT=$GTest_ROOT ../..
|
|
cmake --build .
|
|
cmake --install . --prefix=../install
|
|
|
|
# Back to root directory
|
|
cd ..
|
|
cd ..
|