Skip to content

Commit f01e95c

Browse files
committed
make it simple
1 parent a78812f commit f01e95c

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)