-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (35 loc) · 1.01 KB
/
main.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
name: SDK CI
on:
push:
branches: [ main, master ]
env:
DOXYFILE: ${{github.workspace}}/Doxyfile
HTML_DIR: ${{github.workspace}}/doc/html
jobs:
build:
runs-on: ubuntu-latest
environment: linux
steps:
- uses: actions/checkout@v3
- name: Setup GNU Arm Embedded Toolchain
uses: carlosperate/[email protected]
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install doxygen
run: |
sudo apt-get install doxygen -y
sudo apt install graphviz -y
- name: Run Build Documentation Script
run: |
chmod +x ./build-doc.sh
./build-doc.sh
- name: Deploy Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/html
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
- name: Run Example Build Script
run: |
chmod +x ./test-build-examples.sh
./test-build-examples.sh