From 099971086fd5c42bdfadf9c1b55aa8f0eb624a22 Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Fri, 14 Aug 2020 18:21:03 -0300 Subject: [PATCH] Update to use the new version of actions/cache Networking issues impacting cache save/restore https://github.com/actions/cache/issues 267 --- .github/workflows/checks.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 95e3e5cc2..059bdc029 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -179,7 +179,7 @@ jobs: # Disable it for macos because it pyenv cache is bugged (https://github.com/ankitects/anki/pull/563) - name: Cache pyenv if: matrix.os != 'macos-latest' && matrix.python == '3.7' - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ github.workspace }}${{ matrix.SEP }}pyenv key: ${{ runner.os }}-pyenv-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-22- @@ -187,42 +187,42 @@ jobs: # # Disable it in attempt to reduce the overall cache size (https://github.com/ankitects/anki/pull/528) # - name: Cache pip wheels # if: matrix.BUILD_TYPE == 'build' && matrix.python == '3.7' - # uses: actions/cache@v1 + # uses: actions/cache@v2 # with: # path: ${{ matrix.PIP_WHEELS_DIR }} # key: ${{ runner.os }}-pip-wheels-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/setup.py') }}-22- - name: Cache cargo index if: matrix.python == '3.7' - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ matrix.CARGO_INDEX_DIR }} key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-23- - name: Cache cargo registry if: matrix.python == '3.7' - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ matrix.CARGO_REGISTRY_DIR }} key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-23- - name: Cache cargo target if: matrix.python == '3.7' - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ github.workspace }}${{ matrix.SEP }}target key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-22- - name: Cache cargo rslib if: matrix.python == '3.7' - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ github.workspace }}${{ matrix.SEP }}rslib${{ matrix.SEP }}target key: ${{ runner.os }}-cargo-rslib-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-23- - name: Cache cargo rspy if: matrix.python == '3.7' - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ github.workspace }}${{ matrix.SEP }}rspy${{ matrix.SEP }}target key: ${{ runner.os }}-cargo-rspy-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-23-