Skip to content

Commit e0472ce

Browse files
committed
added doxygen ci cd for releases, split tar gz and rpm
1 parent 8fcbb83 commit e0472ce

File tree

2 files changed

+94
-7
lines changed

2 files changed

+94
-7
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,40 @@
1-
name: CMake Multi-Platform CI/CD
1+
name: cmake-multiplatform-workflow
22

33
on:
44
push:
55
branches: ["main"]
6+
paths:
7+
- 'src/**'
8+
- 'include/**'
9+
- 'cmake/**'
10+
- '**/*.cmake'
11+
- '**/*.cpp'
12+
- '**/*.hpp'
13+
- '**/*.c'
14+
- '**/*.h'
15+
- '**/*.cxx'
16+
- '**/*.hxx'
17+
- 'CMakeLists.txt'
18+
- '**/*CMakeLists*.txt'
19+
- '**/*CMakePresets.json'
20+
- '.github/workflows/**'
621
pull_request:
722
branches: ["main"]
23+
paths:
24+
- 'src/**'
25+
- 'include/**'
26+
- 'cmake/**'
27+
- '**/*.cmake'
28+
- '**/*.cpp'
29+
- '**/*.hpp'
30+
- '**/*.c'
31+
- '**/*.h'
32+
- '**/*.cxx'
33+
- '**/*.hxx'
34+
- 'CMakeLists.txt'
35+
- '**/*CMakeLists*.txt'
36+
- '**/CMakePresets.json'
37+
- '.github/workflows/**'
838

939
jobs:
1040
build-package:
@@ -41,11 +71,23 @@ jobs:
4171
- name: Configure CMake
4272
run: cmake --workflow --preset ${{ matrix.preset }}
4373

44-
- name: Upload Artifacts
74+
- name: Upload ZIP artifacts
4575
uses: actions/upload-artifact@v4
4676
with:
47-
name: ${{ matrix.os }}-${{ matrix.preset }}-package
48-
path: |
49-
build/*/*.tar.gz
50-
build/*/*.rpm
51-
build/*/*.zip
77+
name: ${{ matrix.os }}-${{ matrix.preset }}-zip
78+
path: build/*/*.zip
79+
if-no-files-found: ignore
80+
81+
- name: Upload TAR.GZ artifacts
82+
uses: actions/upload-artifact@v4
83+
with:
84+
name: ${{ matrix.os }}-${{ matrix.preset }}-tar-gz
85+
path: build/*/*.tar.gz
86+
if-no-files-found: ignore
87+
88+
- name: Upload RPM artifacts
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: ${{ matrix.os }}-${{ matrix.preset }}-rpm
92+
path: build/*/*.rpm
93+
if-no-files-found: ignore

.github/workflows/doxygen-docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: doxygen-docs
2+
# todo: make it be only docs target, no other tools to avoid warnings (as dev tools)
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build-docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # needed for git tags/version info
16+
17+
- name: Install docs deps
18+
run: |
19+
sudo apt-get update -qq
20+
sudo apt-get install -y --no-install-recommends \
21+
doxygen \
22+
graphviz \
23+
libwayland-dev \
24+
libxkbcommon-dev \
25+
libegl1-mesa-dev \
26+
libgles2-mesa-dev \
27+
libgl1-mesa-dev \
28+
libdbus-1-dev \
29+
libudev-dev \
30+
libasound2-dev \
31+
ninja-build \
32+
clang
33+
34+
- name: Configure CMake for docs
35+
run: cmake --preset clang -DENABLE_DEV_TOOLS=ON
36+
37+
- name: Build CMake for docs
38+
run: cmake --build --preset clang
39+
40+
- name: Upload docs artifacts
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: documentation
44+
path: |
45+
build/**/generated-docs/**

0 commit comments

Comments
 (0)