Skip to content

cache .mo files for build time optimization #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 6, 2023
12 changes: 11 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,19 @@ jobs:
repository: 'python/cpython'
ref: ${{env.VERSION}}
path: cpython
- uses: actions/cache/restore@v3
with:
path: |
cpython/Doc/build
docs
key: cache-${{ inputs.version }}-${{ github.run_id }}
restore-keys: cache-${{ inputs.version }}-
- name: Checkout Current Branch
uses: actions/checkout@v3
with:
ref: ${{env.VERSION}}
path: docs
clean: false
- name: prepare
run: .github/scripts/prepare.sh
- name: update
Expand All @@ -47,7 +55,9 @@ jobs:
run: .github/scripts/build.sh
- uses: actions/cache/save@v3
with:
path: cpython/Doc/build
path: |
cpython/Doc/build
docs
key: cache-${{ inputs.version }}-${{ github.run_id }}
- name: stat
run: python .github/scripts/tx_stat.py > ./docs/.stat.json
Expand Down