FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
daScript/.github/workflows/doc.yml at master · WhyNot135/daScript · GitHub
WhyNot135
/
daScript
Public
forked from
GaijinEntertainment/daScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
daScript
/
.github
/
workflows
/
doc.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
109 lines (98 loc) · 3.43 KB
Breadcrumbs
daScript
/
.github
/
workflows
/
doc.yml
Copy path
File metadata and controls
109 lines (98 loc) · 3.43 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
108
109
name
:
Build doc
#
Run only on tags and release publish
on
:
release
:
types
:
prereleased
push
:
paths
:
-
'
doc/**
'
-
'
daslib/**
'
-
'
src/builtin/**
'
-
'
modules/dasLLAMA/dasllama/**
'
pull_request
:
paths
:
-
'
doc/**
'
-
'
daslib/**
'
-
'
src/builtin/**
'
-
'
modules/dasLLAMA/dasllama/**
'
concurrency
:
group
:
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress
:
true
jobs
:
build
:
runs-on
:
ubuntu-latest
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
-
name
:
"
Build: Daslang (for das2rst)
"
run
:
|
set -eux
mkdir build
cmake --no-warn-unused-cli -B./build \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DDAS_HV_DISABLED=OFF \
-DDAS_PUGIXML_DISABLED=OFF \
-DDAS_LLVM_DISABLED=ON \
-DDAS_GLFW_DISABLED=ON \
-DDAS_BUILD_DOCUMENTATION=ON \
-G Ninja
cmake --build ./build --target daslang
-
name
:
"
Run das2rst
"
run
:
cmake --build ./build --target check_docs_generated
-
name
:
"
Check for // `stub` in handmade docs
"
run
:
|
set -eux
if grep -rl '// stub' doc/source/stdlib/handmade/; then
echo "ERROR: Found // stub entries in handmade docs. Please provide proper documentation."
exit 1
fi
-
name
:
"
Check for Uncategorized sections
"
run
:
|
set -eux
if grep -rl '^Uncategorized$' doc/source/stdlib/generated/; then
echo "ERROR: Found Uncategorized sections in generated docs."
echo "Add the function(s) to a group_by_regex() in doc/reflections/das2rst.das."
exit 1
fi
-
name
:
"
Check for new untracked RST files
"
run
:
|
set -eux
UNTRACKED=$(git ls-files --others --exclude-standard doc/source/stdlib/)
if [ -n "$UNTRACKED" ]; then
echo "ERROR: das2rst generated new files not tracked in git:"
echo "$UNTRACKED"
echo "Run das2rst locally and commit the new files."
exit 1
fi
-
name
:
"
Build documentation (HTML + LaTeX)
"
run
:
cmake --build ./build --target build_doc
-
name
:
Compile LaTeX document
uses
:
xu-cheng/latex-action@v4
with
:
#
Pinned: the rolling texlive-alpine:latest flipped to TL 2026 (2026-07-01) whose kernel
#
dies with "TeX capacity exceeded [input stack size]" on the generated stdlib PDF.
texlive_version
:
"
2025
"
root_file
:
daslangstdlib.tex
working_directory
:
build/doc/doc_latex
continue_on_error
:
true
-
name
:
Compile LaTeX document
uses
:
xu-cheng/latex-action@v4
with
:
texlive_version
:
"
2025
"
root_file
:
daslang.tex
working_directory
:
build/doc/doc_latex
continue_on_error
:
true
-
name
:
Check pdf file
run
:
|
find . -name "*.pdf"
-
name
:
"
Upload release PDFs
"
if
:
github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'prereleased')
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
gh release upload "${{ github.event.release.tag_name }}" build/doc/doc_latex/daslang.pdf build/doc/doc_latex/daslangstdlib.pdf --clobber
Back
|
FazBrowse Home
|
New Git URL