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:
Max Hilbrunner
2025-01-06 10:55:46 +01:00
parent 434c5cbb1f
commit cd993f0b96
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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