Skip to content

Commit 8382c38

Browse files
Create BuildAndTest
1 parent 43061a3 commit 8382c38

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/BuildAndTest

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: tests
2+
3+
on: [push]
4+
5+
env:
6+
BUILD_TYPE: Release
7+
8+
jobs:
9+
build:
10+
runs-on: linux-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: install dependencies
16+
run: apt-get update;
17+
apt-get install boost;
18+
apt-get install googletest
19+
20+
21+
- name: Configure CMake
22+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
23+
24+
- name: Build
25+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
26+
27+
- name: Test
28+
run: ${{github.workspace}}/build/tests/boost-tcp-server-client-tests

0 commit comments

Comments
 (0)