-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (100 loc) · 3.42 KB
/
Copy pathci.yml
File metadata and controls
104 lines (100 loc) · 3.42 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: CI
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
jobs:
format:
name: clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install clang-format 20
run: |
python -m pip install --upgrade pip
python -m pip install "clang-format==20.1.8"
clang-format --version
- name: Check formatting
run: python scripts/format_source.py --check
protocol-tests:
name: protocol + tab_strip (no Qt)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install Ninja
run: sudo apt-get update && sudo apt-get install -y ninja-build
- name: Install Python protobuf
run: python -m pip install -r clients/python/requirements.txt
- name: Cache FetchContent deps
uses: actions/cache@v6
with:
path: build/_deps
key: mps-deps-ubuntu-${{ hashFiles('cmake/**', 'CMakeLists.txt', 'src/common/CMakeLists.txt') }}
- name: Configure (tests only)
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DMPS_FETCH_PROTOBUF=ON \
-DFETCHCONTENT_UPDATES_DISCONNECTED=ON \
-DMPS_BUILD_TESTS=ON \
-DMPS_BUILD_DEMOS=OFF \
-DMPS_BUILD_SRC=OFF
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build --output-on-failure --no-tests=error
windows-qt:
name: Windows MSVC + Qt (Demo + tests)
runs-on: windows-latest
steps:
- name: Checkout MultiProcessShell
uses: actions/checkout@v7
with:
path: MultiProcessShell
- name: Checkout QThemeEngine (sibling for Demo Client)
uses: actions/checkout@v7
with:
repository: yanxijian/QThemeEngine
path: QThemeEngine
- name: Checkout QFluentRibbon (sibling for Demo Client)
uses: actions/checkout@v7
with:
repository: yanxijian/QFluentRibbon
path: QFluentRibbon
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- uses: seanmiddleditch/gha-setup-ninja@v6
- name: Install Python protobuf
working-directory: MultiProcessShell
run: python -m pip install -r clients/python/requirements.txt
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.8.3"
cache: true
arch: win64_msvc2022_64
- name: Cache FetchContent deps
uses: actions/cache@v6
with:
path: MultiProcessShell/build/_deps
key: mps-deps-win-${{ hashFiles('MultiProcessShell/cmake/**', 'MultiProcessShell/CMakeLists.txt', 'MultiProcessShell/src/common/CMakeLists.txt') }}
- name: Build and test
working-directory: MultiProcessShell
shell: cmd
env:
QTDIR: ${{ env.QT_ROOT_DIR }}
run: |
where cl
where ninja
python scripts\build_repo.py --test -D MPS_DEV_EMBED_QTE=ON -D MPS_DEV_EMBED_QFR=ON -D MPS_INSTALL=OFF