1
0
Files
YYCCommonplace/.github/linux_build.sh
yyc12345 45f32297da chore: fix workflow execution permission issue
- fix github workflow exec permission issue
- fix termcolor enum class issue on Linux
- fix compiler macro on macos
2025-12-24 19:52:36 +08:00

20 lines
338 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 ../..
cmake --build .
cmake --install . --prefix=../install
# Back to root directory
cd ..
cd ..