try 3
This commit is contained in:
@@ -5,17 +5,21 @@
|
||||
set -e
|
||||
|
||||
# Create build directory if it doesn't exist
|
||||
mkdir -p build
|
||||
cd build
|
||||
mkdir -p build_ci
|
||||
cd build_ci
|
||||
|
||||
# Configure with CMake
|
||||
echo "Configuring with CMake..."
|
||||
cmake .. $@
|
||||
# Use the same CMake settings as in CI
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DTINYTEST_BUILD_SHARED_LIBS=OFF \
|
||||
-DBUILD_TESTING=ON
|
||||
|
||||
# Build
|
||||
echo "Building..."
|
||||
# Build the project
|
||||
cmake --build .
|
||||
|
||||
# Run tests
|
||||
ctest --output-on-failure
|
||||
|
||||
echo "Build complete!"
|
||||
echo "To run tests: cd build && ctest"
|
||||
echo "To install: cd build && sudo cmake --install ."
|
||||
echo "To run tests: cd build_ci && ctest"
|
||||
echo "To install: cd build_ci && sudo cmake --install ."
|
||||
Reference in New Issue
Block a user