From efbacbf54f810b5d0ba81bada3448852126e9c9a Mon Sep 17 00:00:00 2001 From: liukan Date: Tue, 23 Nov 2021 16:56:03 +0800 Subject: [PATCH] [no ci] actions/cache@v2 restore-keys --- .github/workflows/windows.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c8c4cb3..66e43c7 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -149,13 +149,16 @@ jobs: continue-on-error: true if: ${{! github.event.inputs.update_cache}} env: - cache-name: cache-cuda-installer-${{env.CUDA_VERSION}} + cache-name: cache-conan with: path: | c:/conan_p c:/conan_s c:/conan_c - key: ${{ runner.os }}-file-conan + key: ${{ runner.os }}-${{ env.cache-name }}-${{github.sha}}-${{ github.event.inputs.ref_sha}} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}-${{github.sha}}- + ${{ runner.os }}-${{ env.cache-name }}- - name: install conan run: | @@ -182,7 +185,7 @@ jobs: - name: Cache conan packages if: ${{(! steps.cache_hits_conan.outputs.cache-hit)|| github.event.inputs.update_cache}} id: conan_save - uses: actions/cache@v2 + uses: actions/cache@v2 env: cache-name: cache-conan with: @@ -190,7 +193,7 @@ jobs: c:/conan_p c:/conan_s c:/conan_c - key: ${{ runner.os }}-file-conan + key: ${{ runner.os }}-${{ env.cache-name }}-${{github.sha}}-${{ github.event.inputs.ref_sha}} # - name: Find Cache cuda packages # id: cache_hits