summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-02 12:33:34 +0100
committerskal <pascal.massimino@gmail.com>2026-02-02 12:33:34 +0100
commit6d41f29b223c51ebca4713028a075ebf2ce44d5e (patch)
tree564c730ad531696ccc32d64423f36e3052c1acd4 /scripts
parent108fbf93e2d3f0c7f7d3a39a597f3d70c00e33bd (diff)
feat(build): Add check_all script and optimize spectool
- Task #4b: Added scripts/check_all.sh to build and test all platform targets (native and Windows cross-compile) to ensure pre-commit stability. - Task #10: Modified spectool to trim both leading and trailing silent frames from generated .spec files, reducing asset size.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_all.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/check_all.sh b/scripts/check_all.sh
new file mode 100755
index 0000000..0a03144
--- /dev/null
+++ b/scripts/check_all.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# This script builds and tests all supported platform targets to ensure
+# stability before a major commit.
+
+set -e
+
+echo "--- Running Native Build & Tests ---"
+cmake -S . -B build -DDEMO_BUILD_TESTS=ON
+cmake --build build
+(cd build && ctest --output-on-failure)
+
+echo ""
+echo "--- Running Windows Cross-Compilation Build ---"
+./scripts/build_win.sh
+
+echo ""
+echo "All checks passed successfully."