Skip to content

Commit 1230064

Browse files
Create main.yml
1 parent 4575d01 commit 1230064

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: RISC-V Simulator CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-run-tests:
11+
runs-on: ubuntu-latest
12+
13+
container:
14+
image: docker.io/harsonlau/riscv-tools:latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Run All Tests
20+
run: |
21+
set -e
22+
for test_file in test/src/*.c; do
23+
test_name=$(basename "$test_file" .c)
24+
25+
echo "---"
26+
echo "🚀 Running test: $test_name"
27+
echo "---"
28+
29+
make T="$test_name"
30+
done

0 commit comments

Comments
 (0)