Skip to content

Commit e9a30fa

Browse files
committed
Add run_all.sh
1 parent 6a9e0ea commit e9a30fa

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/zig.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ on:
66
branches: [ "main" ]
77

88
jobs:
9-
build:
9+
run:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
13+
1414
- name: Install Zig
1515
run: |
1616
wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
1717
tar -xf zig-linux-x86_64-0.13.0.tar.xz
1818
echo "$(pwd)/zig-linux-x86_64-0.13.0" >> $GITHUB_PATH
19-
19+
2020
- name: Verify Zig Installation
2121
run: zig version
22-
22+
23+
- name: Run Zig
24+
run: |
25+
chmod +x run_all.sh
26+
./run_all.sh

run_all.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
for dir in */; do
4+
echo -e "\n\n--------[ $dir ]--------"
5+
6+
cd "$dir" || continue
7+
8+
for file in *.zig; do
9+
echo -e "\n\nRun: $file"
10+
zig run "$file"
11+
done
12+
13+
cd ..
14+
done

0 commit comments

Comments
 (0)