Skip to content

Commit 852c8d6

Browse files
committed
update ci
1 parent 21d5e66 commit 852c8d6

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
name: CI
22
on:
33
push:
4-
branches: [main, "copilot/**"]
4+
branches: [main, develop, "copilot/**"]
55
pull_request:
6-
branches: [main]
6+
branches: [main, develop, "copilot/**"]
77

88
jobs:
99
build-and-test:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Install tools
14+
- name: Install system dependencies
1515
run: |
16-
sudo apt-get update && sudo apt-get install -y \
17-
cmake ninja-build clang clang-format clang-tidy
16+
sudo apt-get update -q
17+
sudo apt-get install -y \
18+
ninja-build clang clang-format clang-tidy
19+
20+
- name: Install CMake 4.x
21+
run: pip install "cmake>=4,<5" --quiet
1822

1923
- name: Configure
2024
run: |
21-
cmake -B build -G Ninja \
25+
cmake -S . -B build -G Ninja \
2226
-DCMAKE_BUILD_TYPE=Debug \
27+
-DCYMON_BUILD_TESTS=ON \
2328
-DCMAKE_CXX_COMPILER=clang++ \
2429
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
2530

0 commit comments

Comments
 (0)