Skip to content

Commit 2fdc5f2

Browse files
committed
chore: update github ci
Signed-off-by: Yuming He <ComixHe1895@outlook.com>
1 parent 3be5501 commit 2fdc5f2

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,9 @@ jobs:
1919
run: |
2020
sudo apt-get update
2121
sudo apt-get install -y cmake ninja-build build-essential pkgconf libcap-dev \
22-
libseccomp-dev nlohmann-json3-dev libcli11-dev libgtest-dev
22+
libseccomp-dev nlohmann-json3-dev libcli11-dev libgtest-dev \
23+
libsystemd-dev
2324
24-
- name: Configure CMake
25-
env:
26-
CXX: ${{ matrix.compiler.cxx }}
25+
- name: Configure and Build Project
2726
run: |
28-
cmake -B build -G Ninja \
29-
-DCMAKE_BUILD_TYPE=Debug \
30-
-Dlinyaps-box_ENABLE_CPM=OFF \
31-
-Dlinyaps-box_DEFAULT_LOG_LEVEL=7 \
32-
-Dlinyaps-box_ACTIVE_LOG_LEVEL=7
33-
34-
- name: Build Project
35-
run: |
36-
cmake --build build --parallel $(nproc)
27+
cmake --workflow --preset=ci

.github/workflows/codeql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
- name: Install Build Dependencies
3838
run: |
3939
sudo apt-get update
40-
sudo apt-get install -y cmake ninja-build build-essential pkgconf libcap-dev libseccomp-dev nlohmann-json3-dev libcli11-dev libgtest-dev
40+
sudo apt-get install -y cmake ninja-build build-essential pkgconf \
41+
libcap-dev libseccomp-dev libsystemd-dev
4142
4243
- name: Configure and Build
4344
run: |
44-
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -Dlinyaps-box_ENABLE_CPM=OFF -Dlinyaps-box_DEFAULT_LOG_LEVEL=7 -Dlinyaps-box_ACTIVE_LOG_LEVEL=7
45-
ninja -C build
45+
cmake --workflow --preset=codeql
4646
4747
- name: Perform CodeQL Analysis
4848
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)