Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 531eac4

Browse files
authored
Update cmake-single-platform.yml
1 parent 5091fa7 commit 531eac4

1 file changed

Lines changed: 29 additions & 19 deletions

File tree

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
1-
name: CMake on a single platform
1+
name: CMake Build
22

33
on:
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

129
jobs:
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

0 commit comments

Comments
 (0)