Skip to content

Commit 12fad78

Browse files
authored
cache .mo files for build time optimization (#320)
* Cache .mo files * Avoid clean cache
1 parent adcbce5 commit 12fad78

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/sync.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,19 @@ jobs:
2727
repository: 'python/cpython'
2828
ref: ${{env.VERSION}}
2929
path: cpython
30+
- uses: actions/cache/restore@v3
31+
with:
32+
path: |
33+
cpython/Doc/build
34+
docs
35+
key: cache-${{ inputs.version }}-${{ github.run_id }}
36+
restore-keys: cache-${{ inputs.version }}-
3037
- name: Checkout Current Branch
3138
uses: actions/checkout@v3
3239
with:
3340
ref: ${{env.VERSION}}
3441
path: docs
42+
clean: false
3543
- name: prepare
3644
run: .github/scripts/prepare.sh
3745
- name: update
@@ -47,7 +55,9 @@ jobs:
4755
run: .github/scripts/build.sh
4856
- uses: actions/cache/save@v3
4957
with:
50-
path: cpython/Doc/build
58+
path: |
59+
cpython/Doc/build
60+
docs
5161
key: cache-${{ inputs.version }}-${{ github.run_id }}
5262
- name: stat
5363
run: python .github/scripts/tx_stat.py > ./docs/.stat.json

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy