Skip to content

Commit 98812c7

Browse files
committed
Add CI script
1 parent 7781007 commit 98812c7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: C/C++ CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 30
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: CPU Information
12+
run: lscpu || echo "CPU information not available"
13+
- name: Compiler Information
14+
run: cc -v
15+
- name: make
16+
run: make
17+
- name: Run insert
18+
run: l=$(find . -executable -type f|grep -v .git) ; for e in $l ; do echo "$e" ; timeout 1m "$e" || echo TIMEOUT; done
19+
- name: Run Delete
20+
run: l=$(find . -executable -type f|grep -v .git) ; for e in $l ; do echo "$e" ; timeout 1m "$e" -d || echo TIMEOUT; done

0 commit comments

Comments
 (0)