Skip to content

Commit b196dfc

Browse files
committed
ci test and benchmark
1 parent 9989a4d commit b196dfc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: egor-tensin/setup-gcc@v1
15+
with:
16+
version: latest
17+
- run: |
18+
sudo apt install -y make
19+
- name: Build
20+
run: make -j test
21+
22+
benchmark:
23+
needs: build
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Benchmark
27+
run: |
28+
set +e
29+
echo "cnt_1bill"
30+
./test/test ./test/cnt_1bill
31+
echo "nops"
32+
./test/test ./test/nops
33+
exit 0

0 commit comments

Comments
 (0)