File tree 3 files changed +26
-1
lines changed
3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ cd cpython/Doc || exit 1
14
14
mkdir -p locales/" $LOCALE " /
15
15
ln -sfn " $( realpath ../../docs) " locales/" $LOCALE " /LC_MESSAGES
16
16
pip3 install -q -r requirements.txt
17
- make html SPHINXOPTS= " - D language=$LOCALE -D gettext_compact=0 -W --keep-going" 2> >( error)
17
+ sphinx-build -b dummy -d build/doctrees -j auto - D language=$LOCALE -D gettext_compact=0 -W --keep-going -W . build/html 2> >( error)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ cd cpython || exit 1
4
+
5
+ # Restore git timestamp for enabling build cache
6
+ rev=HEAD
7
+ for f in $( git ls-tree -r -t --full-name --name-only " $rev " Doc) ; do
8
+ touch -d $( git log --pretty=format:%cI -1 " $rev " -- " $f " ) " $f " ;
9
+ done
10
+
11
+ cd ..
3
12
cd docs || exit 1
13
+
14
+ # Restore git timestamp for enabling build cache
15
+ rev=HEAD
16
+ for f in $( git ls-tree -r -t --full-name --name-only " $rev " ) ; do
17
+ touch -d $( git log --pretty=format:%cI -1 " $rev " -- " $f " ) " $f " ;
18
+ done
19
+
4
20
$( realpath ../tx) pull --languages " $LOCALE " -t --use-git-timestamps --workers 25 --silent
Original file line number Diff line number Diff line change 38
38
run : .github/scripts/update.sh
39
39
env :
40
40
TX_TOKEN : ${{ secrets.TRANSIFEX_APIKEY }}
41
+ - uses : actions/cache/restore@v3
42
+ with :
43
+ path : cpython/Doc/build
44
+ key : cache-${{ inputs.version }}-${{ github.run_id }}
45
+ restore-keys : cache-${{ inputs.version }}-
41
46
- name : build
42
47
run : .github/scripts/build.sh
48
+ - uses : actions/cache/save@v3
49
+ with :
50
+ path : cpython/Doc/build
51
+ key : cache-${{ inputs.version }}-${{ github.run_id }}
43
52
- name : stat
44
53
run : python .github/scripts/tx_stat.py > ./docs/.stat.json
45
54
env :
You can’t perform that action at this time.
0 commit comments