-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.07 KB
/
cmake-single-platform.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Tests on Ubuntu
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install ninja-build python3-poetry -y
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_C_COMPILER=gcc-13 -G Ninja
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all -j $(nproc)
- name: Run CTests
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -j $(nproc)
- name: Test the server and the client
working-directory: ${{github.workspace}}
run: |
sed -i 's/3.11/3.10/' ./pyproject.toml
poetry install
poetry run ./test_cmds.py --server ${{github.workspace}}/build/server --client ${{github.workspace}}/build/client