-
-
Notifications
You must be signed in to change notification settings - Fork 741
36 lines (32 loc) · 1.25 KB
/
generate-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
name: Generate GithubPages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install pre-requisite
run: |
sudo apt update
sudo apt install gdb-multiarch python3 python3-dev python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev gdbserver qemu-user -y
version=$(gdb -q -nx -ex 'pi print(f"{sys.version_info.major}.{sys.version_info.minor}", end="")' -ex quit)
python${version} -m pip install --requirement docs/requirements.txt --upgrade
python${version} -m pip install --requirement tests/requirements.txt --upgrade
- name: Regenerate GEF API file
run: |
echo "source $(pwd)/gef.py" > ~/.gdbinit
bash scripts/generate-api-docs.sh
bash scripts/generate-settings-docs.sh
bash scripts/generate-coverage-docs.sh
- name: Build and publish the docs
run: |
git config --global user.name "hugsy"
git config --global user.email "[email protected]"
mkdocs gh-deploy --force