Skip to content

Commit 6784f73

Browse files
Merge pull request #4 from P-p-H-d/feature/mlib-bulk
M*LIB bulk & CI
2 parents e691fb3 + 98812c7 commit 6784f73

File tree

5 files changed

+109
-2364
lines changed

5 files changed

+109
-2364
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

mlib/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
all:run-test
1+
all:run-test run-test.bulk
22

33
run-test:test.c ../common.c m-dict.h
44
$(CC) -O3 -Wall -DNDEBUG $< -o $@
55

6+
run-test.bulk:test-bulk.c ../common.c m-dict.h
7+
$(CC) -O3 -Wall -DNDEBUG $< -o $@
8+
69
clean:
7-
rm -fr run-test
10+
rm -fr run-test run-test.bulk

0 commit comments

Comments
 (0)