Skip to content

Commit 2bb9264

Browse files
committed
minor #13209 speedup sphinx build with caching pip (smoench)
This PR was merged into the 3.4 branch. Discussion ---------- speedup sphinx build with caching pip <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 65f9417 speedup sphinx build/linting with caching doctrees and pip cache
2 parents 0504ce9 + 65f9417 commit 2bb9264

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ jobs:
2929
- name: "Install Sphinx dependencies"
3030
run: sudo apt-get install python-dev build-essential
3131

32-
- name: "Install Sphinx"
33-
run: pip install --user sphinx
32+
- name: "Cache pip"
33+
uses: actions/cache@v1
34+
with:
35+
path: ~/.cache/pip
36+
key: ${{ runner.os }}-pip-${{ hashFiles('_build/.requirements.txt') }}
37+
restore-keys: |
38+
${{ runner.os }}-pip-
3439
35-
- name: "Install custom requirements via pip"
40+
- name: "Install Sphinx + requirements via pip"
3641
run: pip install -r _build/.requirements.txt
3742

3843
- name: "Build documentation"

0 commit comments

Comments
 (0)