-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (42 loc) · 1.34 KB
/
linux_cpp_build.yml
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
name: Linux cpp build
run-name: ${{ github.actor }} Linux cpp build
on:
workflow_dispatch:
pull_request:
jobs:
linux_cpp_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install components
run: sudo apt-get install -y build-essential doxygen graphviz python3-pip python3-dev
- name: install dependencies
run: pip3 install -r requirements.txt
- name: configure
run: cmake -S. -Bbuild -DBUILD_DEB=ON
- name: build
run: cmake --build build
linux_cpp_test:
needs: linux_cpp_build
runs-on: ubuntu-latest
container: registry.cn-shanghai.aliyuncs.com/lebai/l-master:3.1.6
steps:
- name: start nginx
run: nginx
- name: start daemon
run: |
systemctl start l-master-rc
systemctl start l-master-ds
- name: Checkout
uses: actions/checkout@v3
- name: install components
run: apt-get install -y build-essential doxygen graphviz python3-pip python3-dev
- name: install dependencies
run: pip3 install -r requirements.txt
- name: configure
run: cmake -S. -Bbuild -DBUILD_TESTING=ON -DBUILD_DOCUMENTATION=ON
- name: build
run: cmake --build build
- name: test
run: cmake --build build --target test