mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
CI: Improve Sphinx performance, use multiple cores
According to https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners, these runners are expected to have 4 CPUs available
This commit is contained in:
4
.github/workflows/build_offline_docs.yml
vendored
4
.github/workflows/build_offline_docs.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
||||
sudo apt install parallel libwebp7
|
||||
|
||||
- name: Sphinx - Build HTML
|
||||
run: make SPHINXOPTS='--color' html
|
||||
run: make SPHINXOPTS='--color -j 4' html
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
sed -i 's/"godot_is_latest": True/"godot_is_latest": False/' conf.py
|
||||
sed -i 's/"godot_show_article_status": True/"godot_show_article_status": False/' conf.py
|
||||
|
||||
make SPHINXOPTS='--color' epub
|
||||
make SPHINXOPTS='--color -j 4' epub
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -23,4 +23,4 @@ jobs:
|
||||
|
||||
# Use dummy builder to improve performance as we don't need the generated HTML in this workflow.
|
||||
- name: Sphinx build
|
||||
run: make SPHINXOPTS='--color -W' dummy
|
||||
run: make SPHINXOPTS='--color -j 4 -W' dummy
|
||||
|
||||
Reference in New Issue
Block a user