Skip to content

Commit 0c1b3bc

Browse files
committed
Add a workflow to run GTest
1 parent 1fd972e commit 0c1b3bc

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: server_workflows.yml
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: conanio/gcc11-ubuntu16.04:2.23.0
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Install Conan packages
17+
run: |
18+
conan profile detect --force
19+
conan install . --build=missing
20+
21+
- name: CMake Configure
22+
run: cmake -S . -B build/Release -DCMAKE_TOOLCHAIN_FILE=build/Release/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
23+
24+
- name: CMake Build
25+
run: cmake --build build/Release
26+
27+
- name: Run tests
28+
run: ./build/Release/server_tests_bin

0 commit comments

Comments
 (0)