mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fixed old cache making build fail
# Conflicts: # .github/workflows/checks.yml
This commit is contained in:
parent
28bb56744d
commit
58ba764cb6
1 changed files with 46 additions and 8 deletions
54
.github/workflows/checks.yml
vendored
54
.github/workflows/checks.yml
vendored
|
@ -97,45 +97,81 @@ jobs:
|
|||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ github.workspace }}${{ matrix.SEP }}pyenv
|
||||
key: ${{ runner.os }}-pyenv-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/requirements.txt') }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-pyenv-
|
||||
${{ hashFiles('**/requirements.*') }}-
|
||||
${{ hashFiles('**/setup.py') }}-
|
||||
${{ hashFiles('**/Makefile') }}-14-
|
||||
|
||||
# Disabling these caches for now because they do not seem to be used/help
|
||||
# https://github.com/ankitects/anki/pull/528
|
||||
# - name: Cache pip wheels
|
||||
# if: matrix.BUILD_TYPE == 'build'
|
||||
# uses: actions/cache@v1
|
||||
# with:
|
||||
# path: ${{ matrix.PIP_WHEELS_DIR }}
|
||||
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-14-
|
||||
# key: |
|
||||
# ${{ runner.os }}-pip-wheels-
|
||||
# ${{ hashFiles('**/requirements.txt') }}-
|
||||
# ${{ hashFiles('**/setup.py') }}-14-
|
||||
|
||||
- name: Cache cargo index
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ matrix.CARGO_INDEX_DIR }}
|
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-cargo-index-
|
||||
${{ hashFiles('**/requirements.*') }}-
|
||||
${{ hashFiles('**/setup.py') }}-
|
||||
${{ hashFiles('**/Makefile') }}-
|
||||
${{ hashFiles('**/Cargo.toml') }}-14-
|
||||
|
||||
- name: Cache cargo registry
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ matrix.CARGO_REGISTRY_DIR }}
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-cargo-registry-
|
||||
${{ hashFiles('**/requirements.*') }}-
|
||||
${{ hashFiles('**/setup.py') }}-
|
||||
${{ hashFiles('**/Makefile') }}-
|
||||
${{ hashFiles('**/Cargo.toml') }}-14-
|
||||
|
||||
- name: Cache cargo target
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ github.workspace }}${{ matrix.SEP }}target
|
||||
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-cargo-target-
|
||||
${{ hashFiles('**/requirements.*') }}-
|
||||
${{ hashFiles('**/setup.py') }}-
|
||||
${{ hashFiles('**/Makefile') }}-
|
||||
${{ hashFiles('**/Cargo.toml') }}-
|
||||
${{ matrix.BUILD_TYPE }}-14-
|
||||
|
||||
- name: Cache cargo rslib
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ github.workspace }}${{ matrix.SEP }}rslib${{ matrix.SEP }}target
|
||||
key: ${{ runner.os }}-cargo-rslib-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-cargo-rslib-
|
||||
${{ hashFiles('**/requirements.*') }}-
|
||||
${{ hashFiles('**/setup.py') }}-
|
||||
${{ hashFiles('**/Makefile') }}-
|
||||
${{ hashFiles('**/Cargo.toml') }}-
|
||||
${{ matrix.BUILD_TYPE }}-14-
|
||||
|
||||
- name: Cache cargo rspy
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ github.workspace }}${{ matrix.SEP }}rspy${{ matrix.SEP }}target
|
||||
key: ${{ runner.os }}-cargo-rspy-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-cargo-rspy-
|
||||
${{ hashFiles('**/requirements.*') }}-
|
||||
${{ hashFiles('**/setup.py') }}-
|
||||
${{ hashFiles('**/Makefile') }}-
|
||||
${{ hashFiles('**/Cargo.toml') }}-
|
||||
${{ matrix.BUILD_TYPE }}-14-
|
||||
|
||||
- name: Cache pacman
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
@ -143,7 +179,9 @@ jobs:
|
|||
id: cache-pacman
|
||||
with:
|
||||
path: C:\Program Files\Git
|
||||
key: ${{ runner.os }}-pacman-${{ hashFiles('**/checks.yml') }}-14-
|
||||
key: |
|
||||
${{ runner.os }}-pacman-
|
||||
${{ hashFiles('**/checks.yml') }}-14-
|
||||
|
||||
- name: Set up pacman, rsync
|
||||
if: matrix.os == 'windows-latest' && steps.cache-pacman.outputs.cache-hit != 'true'
|
||||
|
|
Loading…
Reference in a new issue