This repository was archived by the owner on Oct 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,18 +14,10 @@ jobs:
1414 - name : Checkout repository
1515 uses : actions/checkout@v4
1616
17- - name : Install dependencies
18- run : |
19- sudo bash scripts/install.sh
20-
21- - name : Configure CMake
22- run : |
23- cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Debug
24-
2517 - name : Build
2618 run : |
27- cmake -- build cmake-build-debug --config Debug
19+ bash scripts/ build.sh Debug
2820
29- - name : Run tests
21+ - name : Run Golden Tests
3022 run : |
3123 bash tests/run_tests.sh
Original file line number Diff line number Diff line change 1515### Setup
1616
1717``` bash
18- bash ./scripts/setup .sh
18+ bash ./scripts/build .sh
1919```
2020
2121### Run Golden Tests
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -xeu
3+
4+ # This script sets up the project which includes building the CMake project.
5+
6+ SCRIPTS_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
7+ ROOT_DIR=" $( cd " $SCRIPTS_DIR /.." && pwd) "
8+ BUILD_DIR=" $ROOT_DIR /cmake-build-debug"
9+
10+ source " $ROOT_DIR /scripts/commons.sh"
11+
12+ # Usage: ./build.sh [Debug|Release|RelWithDebInfo|MinSizeRel]
13+ BUILD_TYPE=" ${1:- Debug} "
14+ case " $BUILD_TYPE " in
15+ Debug|Release|RelWithDebInfo|MinSizeRel) ;;
16+ * ) log_fatal " Invalid build type \" $BUILD_TYPE \" ." ; exit 1 ;;
17+ esac
18+
19+ # Install dependencies.
20+ log_info " Installing dependencies."
21+ sudo apt-get update
22+ sudo apt-get install -y cmake libreadline-dev
23+
24+ # CMake Project Setup.
25+ mkdir -p " $BUILD_DIR "
26+ cmake -S " $ROOT_DIR " -B " $BUILD_DIR " -DCMAKE_BUILD_TYPE=" $BUILD_TYPE "
27+ log_info " Building cmake project."
28+ cmake --build " $BUILD_DIR " --config " $BUILD_TYPE "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -eu
3+
4+ # Enable colored output, when inside TTY mode.
5+ if [ -t 1 ]; then
6+ RED=" \033[0;31m"
7+ GREEN=" \033[1;32m"
8+ BLUE=" \033[0;34m"
9+ GRAY=" \033[0;90m"
10+ RESET=" \033[0m"
11+ else
12+ RED=" "
13+ GREEN=" "
14+ BLUE=" "
15+ GRAY=" "
16+ RESET=" "
17+ fi
18+
19+ function log_info() { echo -e " [${BLUE} INFO${RESET} ] $* " ; }
20+ function log_pass() { echo -e " [${GREEN} PASS${RESET} ] $* " ; }
21+ function log_note() { echo -e " [${GRAY} NOTE${RESET} ] $* " ; }
22+ function log_fail() { echo -e " [${RED} FAIL${RESET} ] $* " >&2 ; }
23+ function log_error() { echo -e " [${RED} ERROR${RESET} ] $* " >&2 ; }
24+ function log_fatal() { echo -e " [${RED} FATAL${RESET} ] $* " >&2 ; exit 1; }
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1- # This script sets up the project which includes building the CMake project, and
2- # creating python environment for development.
1+ # This script sets up the project which includes building the CMake project.
32# Should be run from within the PROJECT ROOT.
43
54# --- CMake Project Setup ---
@@ -12,13 +11,3 @@ Set-Location $BuildDir
1211cmake ..
1312cmake -- build .
1413Set-Location ..
15-
16- # --- Python Environment Setup ---
17- $VenvDir = " venv"
18- if (! (Test-Path $VenvDir ))
19- {
20- python - m venv $VenvDir
21- }
22- . .\$VenvDir \Scripts\Activate.ps1
23- python - m pip install -- upgrade pip
24- pip install - r requirements.txt
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments