[ci] Use a different cache key for torch nightly vs stable.

pull/2815/head
Stella Laurenzo 2024-01-27 19:42:29 -08:00
parent 4513c3ca87
commit 6b3ebb237f
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ jobs:
uses: actions/cache/restore@v3 uses: actions/cache/restore@v3
with: with:
path: ${{ env.CACHE_DIR }} path: ${{ env.CACHE_DIR }}
key: build-test-cpp-asserts-manylinux-v2-${{ github.sha }} key: build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-${{ github.sha }}
restore-keys: | restore-keys: |
build-test-cpp-asserts-manylinux-v2- build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-
- name: Install python deps (torch-${{ matrix.torch-version }}) - name: Install python deps (torch-${{ matrix.torch-version }})
run: | run: |
@ -64,7 +64,7 @@ jobs:
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
with: with:
path: ${{ env.CACHE_DIR }} path: ${{ env.CACHE_DIR }}
key: build-test-cpp-asserts-manylinux-v2-${{ github.sha }} key: build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-${{ github.sha }}
- name: Integration tests (torch-${{ matrix.torch-version }}) - name: Integration tests (torch-${{ matrix.torch-version }})
run: | run: |