8000 ci: Fix cache key for NumPy wheels. · matplotlib/matplotlib@c842a29 · GitHub
[go: up one dir, main page]

Skip to content

Commit c842a29

Browse files
committed
ci: Fix cache key for NumPy wheels.
It must be unique across jobs, or one of the others (which are undoubtedly faster, since they aren't building NumPy) will finish first and fill the cache with an empty directory.
1 parent 3907180 commit c842a29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ jobs:
4040
python-version: '3.7'
4141

4242
- uses: actions/cache@v2
43-
id: numpy-aarch64-cache
43+
id: numpy-cache
4444
with:
4545
path: numpy-aarch64-cache/
46-
key: numpy-aarch64-cache-${{ env.min-numpy-version }}
46+
key: numpy-${{ matrix.cibw_archs }}-cache-${{ env.min-numpy-version }}
4747

4848
- name: Install cibuildwheel
4949
run: |
5050
python -m pip install cibuildwheel==1.9.0
5151
5252
- name: Build minimum NumPy for aarch64
53-
if: matrix.cibw_archs == 'aarch64' && steps.numpy-aarch64-cache.outputs.cache-hit != 'true'
53+
if: matrix.cibw_archs == 'aarch64' && steps.numpy-cache.outputs.cache-hit != 'true'
5454
run: |
5555
wget https://files.pythonhosted.org/packages/${{ env.min-numpy-hash }}/numpy-${{ env.min-numpy-version }}.zip
5656
unzip numpy-${{ env.min-numpy-version }}.zip

0 commit comments

Comments
 (0)
0