Repository navigation
107 lines (98 loc) · 3.32 KB
/
Copy pathdoc.yml
File metadata and controls
107 lines (98 loc) · 3.32 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Build doc
# Run on master pushes, doc-touching PRs, and daslang prereleases (a dasllama-v* tag cuts no docs)
on:
release:
types: prereleased
push:
branches: [master]
paths:
- 'doc/**'
- 'daslib/**'
- 'src/builtin/**'
- 'modules/dasLLAMA/dasllama/**'
- 'modules/dasCrypto/**'
- 'modules/dasHV/**'
- 'modules/dasImgui/**'
- 'modules/dasVulkan/**'
- 'modules/dasAudio/audio/**'
- 'modules/dasAudio/strudel/**'
- 'modules/dasGLTF/gltf/**'
- 'modules/dasOPENAI/openai/**'
- 'modules/dasPEG/peg/**'
- 'modules/dasPUGIXML/pugixml/**'
- 'modules/dasSpirv/spirv/**'
- 'modules/dasStbImage/stbimage/**'
pull_request:
paths:
- 'doc/**'
- 'daslib/**'
- 'src/builtin/**'
- 'modules/dasLLAMA/dasllama/**'
- 'modules/dasCrypto/**'
- 'modules/dasHV/**'
- 'modules/dasImgui/**'
- 'modules/dasVulkan/**'
- 'modules/dasAudio/audio/**'
- 'modules/dasAudio/strudel/**'
- 'modules/dasGLTF/gltf/**'
- 'modules/dasOPENAI/openai/**'
- 'modules/dasPEG/peg/**'
- 'modules/dasPUGIXML/pugixml/**'
- 'modules/dasSpirv/spirv/**'
- 'modules/dasStbImage/stbimage/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
if: github.event_name != 'release' || !startsWith(github.event.release.tag_name, 'dasllama-')
runs-on: ubuntu-latest
timeout-minutes: 90
# actions: write needed for `gh cache delete` in the sccache refresh step.
permissions:
contents: read
actions: write
steps:
- name: "SCM Checkout"
uses: actions/checkout@v4
- name: "Install Python dependencies"
run: |
# Our bindings do not work on latest.
pip install -r doc/requirements.txt
- name: "Install CMake and Ninja"
uses: lukka/get-cmake@latest
# GL/X11 dev headers: the doc host now builds with dasGlfw + dasImgui ON so
# imgui2rst can load the imgui modules and generate the GUI stdlib pages.
- name: "Install GL + X11 dev libraries"
run: |
sudo bash ci/apt_install.sh --no-install-recommends \
mesa-common-dev libglu1-mesa-dev libgl1-mesa-dev libglfw3-dev \
libx11-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev
# Its own sccache slot: the doc host's module set (GLFW, Vulkan, Crypto, PUGIXML) is no other lane's.
- uses: ./.github/actions/sccache-slot
with:
mode: restore
key: sccache-doc-linux-Release
sccache-size: 2000M
- name: "Build: Daslang (for das2rst + imgui2rst + vulkan2rst)"
run: |
set -eux
mkdir build
cmake --no-warn-unused-cli -B./build \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DDAS_HV_DISABLED=OFF \
-DDAS_CRYPTO_DISABLED=OFF \
-DDAS_PUGIXML_DISABLED=OFF \
-DDAS_LLVM_DISABLED=ON \
-DDAS_GLFW_DISABLED=OFF \
-DDAS_VULKAN_DISABLED=OFF \
-DDAS_BUILD_DOCUMENTATION=ON \
-G Ninja
- name: "Doc lane"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cmake --build ./build --target run_doc --parallel
- uses: ./.github/actions/sccache-slot
with:
mode: save
key: sccache-doc-linux-Release