File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed
Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,15 @@ jobs:
2323 sudo apt-get install -y build-essential g++ clang
2424
2525 # 3. Build and run all examples dynamically
26- - name : Build and run examples
26+ - name : Build and Run
2727 run : |
28- # Detect folders with Makefile
29- folders=$(find . -maxdepth 1 -type d -not -name '.' -exec test -f '{}/Makefile' \; -print | sed 's|^\./||')
30-
31- # List detected folders
32- echo "Detected example folders: $folders"
33-
34- # Loop over each folder and sanitizer
35- for folder in $folders; do
36- for san in address thread undefined; do
37- echo "=== Building $folder with sanitizer $san ==="
38- make -C $folder SANITIZE=$san
39-
40- echo "=== Running $folder with sanitizer $san ==="
41- make -C $folder SANITIZE=$san run
42- done
28+ for san in address thread undefined; do
29+ echo "=== Building all examples with sanitizer $san ==="
30+ make SANITIZE=$san
31+ echo "=== Running all examples with sanitizer $san ==="
32+ make run
4333 done
34+
35+ - name : Clean up build artifacts
36+ run : |
37+ make clean
You can’t perform that action at this time.
0 commit comments