-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1.17 KB
/
c-gen-docs.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
name: C publish Doxygen
on:
workflow_dispatch:
jobs:
build_docs_and_publish:
name: kuliya - latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Create default profile
run: conan profile detect --force
- name: Install dependencies
run: |
cd c
conan install . --output-folder=build --build=missing
- name: Set up build environment
run: |
cd c/build
sh conanbuild.sh
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
- name: Build and run build script
run: |
cd c/build
make build
cd ..
./build/build
- name: Build docs with Doxygen
uses: mattnotmitt/[email protected]
with:
working-directory: "c/"
doxyfile-path: "Doxyfile"
- name: Publish to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./c/docs/html