-
Notifications
You must be signed in to change notification settings - Fork 8
85 lines (70 loc) · 2.44 KB
/
doc.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: documentation web export
on:
push:
branches: [main]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
Web-Export:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt -y update
#
# python3-venv is required to prevent the following issue:
# The virtual environment was not created successfully because ensurepip is not
# available. On Debian/Ubuntu systems, you need to install the python3-venv
# package using the following command.
#
# apt-get install python3-venv
#
sudo apt -y install libsdl2-dev libva-dev python3-venv valgrind spirv-tools glslang-dev libvulkan-dev mesa-vulkan-drivers vulkan-validationlayers
sudo apt -y install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev
sudo apt -y install libfreetype-dev libharfbuzz-dev libfribidi-dev
sudo apt -y install graphviz
- name: Build (main)
run: |
./configure.py --buildtype debug --debug-opts gl vk gpu_capture
make
- name: Build HTML doc (main)
run: |
. venv/bin/ngli-activate
make htmldoc
mv builddir/doc doc-main
- name: Switch to latest stable
run: |
make clean
git fetch --tags
git checkout v$(cat VERSION)
- name: Build (stable)
run: |
./configure.py --buildtype debug --debug-opts gl vk gpu_capture
make
- name: Build HTML doc (stable)
run: |
. venv/bin/ngli-activate
make htmldoc
mv doc-main builddir/doc/main
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: builddir/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2