-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (54 loc) · 1.59 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Update Documentation
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
build:
strategy:
fail-fast: false
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install Doxygen
run: sudo apt-get -y install doxygen
- name: Install Graphviz
run: sudo apt-get -y install graphviz
- name: Install LibGS
run: sudo apt-get -y install libgs9 libgs9-common
- name: Install GCC 12
run: sudo apt-get -y install gcc-12
- name: Install xmake
run: |
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt-get -y update
sudo apt-get -y install xmake
- name: Install Sphinx Tools
run: |
pip install sphinx breathe exhale myst-parser docutils pydata-sphinx-theme sphinx-sitemap
- name: Configure Linux
env:
CC: gcc-12
CXX: gcc-12
working-directory: ${{github.workspace}}
run: |
xmake f -c -y --toolchain=envs
xmake project -k compile_commands
- name: Build Linux
env:
CC: gcc-12
CXX: gcc-12
working-directory: ${{github.workspace}}
run: |
mkdir -p docs/_build/html
touch docs/_build/html/.nojekyll
xmake b hyperion_mpl_docs
- name: Push Docs
if: github.ref == 'refs/heads/main'
uses: s0/git-publish-subdir-action@develop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: self
BRANCH: gh-pages
FOLDER: docs/_build/html