Skip to content

Commit 8183b8b

Browse files
committed
Add gh workflow
1 parent 407f2e3 commit 8183b8b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test pull request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
permissions:
8+
contents: read
9+
10+
env:
11+
BUILD_TYPE: Release
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-22.04
16+
17+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v3
20+
with:
21+
submodules: 'recursive'
22+
23+
- name: Configure CMake
24+
run: cmake -B ${{github.workspace}}/build
25+
26+
- name: Build
27+
# Build your program with the given configuration
28+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
29+
30+
- name: Test
31+
working-directory: ${{github.workspace}}/build
32+
run: ./tondb-scanner/test-tondb

0 commit comments

Comments
 (0)