Skip to content

Commit

Permalink
.github/workflows/dist.yml: Save cache earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 25, 2024
1 parent 5535d37 commit 8a312b3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,11 @@ jobs:
with:
platforms: all

- name: Cache SAGE_LOCAL
- name: Retrieve SAGE_LOCAL cache
id: cache-restore
# useful in particular when running aarch64 repeatedly during development
# because CIBW_BEFORE_ALL takes ~3000s
uses: actions/cache@v4
uses: actions/cache/restore@v4
if: runner.os == 'Linux'
with:
path: /sage-*
Expand Down Expand Up @@ -251,6 +252,15 @@ jobs:
run: |
"${{ steps.python.outputs.python-path }}" -m cibuildwheel unpacked/sagemath*objects*
- name: Save SAGE_LOCAL cache
# We run this after building the first wheel (which builds SAGE_LOCAL in CIBW_BEFORE_ALL)
uses: actions/cache/save@v4
if: runner.os == 'Linux'
with:
path: /sage-*
key:
${{ steps.cache-restore.outputs.cache-primary-key }}

- name: sagemath-categories
run: |
"${{ steps.python.outputs.python-path }}" -m cibuildwheel unpacked/sagemath*categories*
Expand Down

0 comments on commit 8a312b3

Please sign in to comment.