Skip to content

Commit 49f4b26

Browse files
mymldengbo11
authored andcommitted
feat: add GitHub Actions workflow for build process
添加github action工作流用于构建测试
1 parent e29efbe commit 49f4b26

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: build
2+
on:
3+
pull_request_target:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
ubuntu2404:
9+
name: ubuntu_24.04
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install dependencies
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y cmake \
17+
debhelper-compat \
18+
erofsfuse \
19+
intltool \
20+
libcli11-dev \
21+
libcurl4-openssl-dev \
22+
libdeflate-dev \
23+
libelf-dev \
24+
libexpected-dev \
25+
libfuse3-dev \
26+
libglib2.0-dev \
27+
libgmock-dev \
28+
libgtest-dev \
29+
liblz4-dev \
30+
liblzma-dev \
31+
libostree-dev \
32+
libpcre2-dev \
33+
libselinux1-dev \
34+
libssl-dev \
35+
libsystemd-dev \
36+
libyaml-cpp-dev \
37+
libzstd-dev \
38+
nlohmann-json3-dev \
39+
pkg-config \
40+
qtbase5-dev \
41+
qtbase5-private-dev \
42+
systemd \
43+
zlib1g-dev
44+
- name: Build
45+
run: |
46+
mkdir build
47+
cd build
48+
cmake -DCMAKE_BUILD_TYPE=Release \
49+
-DCPM_LOCAL_PACKAGES_ONLY=ON \
50+
-DBUILD_SHARED_LIBS=OFF \
51+
..
52+
53+
make -j$(nproc)

0 commit comments

Comments
 (0)