This repository was archived by the owner on Jan 23, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : CMake on a single platform
1+ name : CMake Build
22
33on :
44 push :
5- branches : [ " main" ]
5+ branches : [ main, master, develop ]
66 pull_request :
7- branches : [ "main" ]
8-
9- env :
10- BUILD_TYPE : Release
7+ branches : [ main, master ]
118
129jobs :
1310 build :
1411 runs-on : ubuntu-latest
15-
12+
1613 steps :
17- - uses : actions/checkout@v4
18-
19- - name : Configure CMake
14+ - name : Checkout code
15+ uses : actions/checkout@v4
2016
21- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
22-
17+ - name : Install system dependencies
18+ run : |
19+ sudo apt-get update
20+ sudo apt-get install -y \
21+ build-essential \
22+ cmake \
23+ libssl-dev
24+
25+ - name : Configure CMake
26+ run : |
27+ mkdir -p build
28+ cd build
29+ cmake -DCMAKE_BUILD_TYPE=Release ..
30+
2331 - name : Build
24-
25- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
26-
27- - name : Test
28- working-directory : ${{github.workspace}}/build
29- run : ctest -C ${{env.BUILD_TYPE}}
30-
32+ run : |
33+ cd build
34+ make -j$(nproc)
35+
36+ - name : Run tests (if any)
37+ run : |
38+ cd build
39+ # Если у вас есть тесты, добавьте здесь
40+ # ./server --test или ctest
You can’t perform that action at this time.
0 commit comments