mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Merge pull request #552 from evandroforks/fix_missing_caches
Fix caches always missing
This commit is contained in:
commit
40e498ba45
1 changed files with 14 additions and 50 deletions
64
.github/workflows/checks.yml
vendored
64
.github/workflows/checks.yml
vendored
|
@ -97,79 +97,45 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}${{ matrix.SEP }}pyenv
|
path: ${{ github.workspace }}${{ matrix.SEP }}pyenv
|
||||||
key: |
|
key: ${{ runner.os }}-pyenv-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-14-
|
||||||
${{ runner.os }}-pyenv-
|
|
||||||
${{ hashFiles('**/requirements.*') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-
|
|
||||||
${{ hashFiles('**/Makefile') }}-14-
|
|
||||||
|
|
||||||
- name: Cache pip wheels
|
# # Disable it in attempt to reduce the overall cache size (https://github.com/ankitects/anki/pull/528)
|
||||||
if: matrix.BUILD_TYPE == 'build'
|
# - name: Cache pip wheels
|
||||||
uses: actions/cache@v1
|
# if: matrix.BUILD_TYPE == 'build'
|
||||||
with:
|
# uses: actions/cache@v1
|
||||||
path: ${{ matrix.PIP_WHEELS_DIR }}
|
# with:
|
||||||
key: |
|
# path: ${{ matrix.PIP_WHEELS_DIR }}
|
||||||
${{ runner.os }}-pip-wheels-
|
# key: ${{ runner.os }}-pip-wheels-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/setup.py') }}-14-
|
||||||
${{ hashFiles('**/requirements.txt') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-14-
|
|
||||||
|
|
||||||
- name: Cache cargo index
|
- name: Cache cargo index
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ matrix.CARGO_INDEX_DIR }}
|
path: ${{ matrix.CARGO_INDEX_DIR }}
|
||||||
key: |
|
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-14-
|
||||||
${{ runner.os }}-cargo-index-
|
|
||||||
${{ hashFiles('**/requirements.*') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-
|
|
||||||
${{ hashFiles('**/Makefile') }}-
|
|
||||||
${{ hashFiles('**/Cargo.toml') }}-14-
|
|
||||||
|
|
||||||
- name: Cache cargo registry
|
- name: Cache cargo registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ matrix.CARGO_REGISTRY_DIR }}
|
path: ${{ matrix.CARGO_REGISTRY_DIR }}
|
||||||
key: |
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-14-
|
||||||
${{ runner.os }}-cargo-registry-
|
|
||||||
${{ hashFiles('**/requirements.*') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-
|
|
||||||
${{ hashFiles('**/Makefile') }}-
|
|
||||||
${{ hashFiles('**/Cargo.toml') }}-14-
|
|
||||||
|
|
||||||
- name: Cache cargo target
|
- name: Cache cargo target
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}${{ matrix.SEP }}target
|
path: ${{ github.workspace }}${{ matrix.SEP }}target
|
||||||
key: |
|
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-14-
|
||||||
${{ runner.os }}-cargo-target-
|
|
||||||
${{ hashFiles('**/requirements.*') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-
|
|
||||||
${{ hashFiles('**/Makefile') }}-
|
|
||||||
${{ hashFiles('**/Cargo.toml') }}-
|
|
||||||
${{ matrix.BUILD_TYPE }}-14-
|
|
||||||
|
|
||||||
- name: Cache cargo rslib
|
- name: Cache cargo rslib
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}${{ matrix.SEP }}rslib${{ matrix.SEP }}target
|
path: ${{ github.workspace }}${{ matrix.SEP }}rslib${{ matrix.SEP }}target
|
||||||
key: |
|
key: ${{ runner.os }}-cargo-rslib-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-14-
|
||||||
${{ runner.os }}-cargo-rslib-
|
|
||||||
${{ hashFiles('**/requirements.*') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-
|
|
||||||
${{ hashFiles('**/Makefile') }}-
|
|
||||||
${{ hashFiles('**/Cargo.toml') }}-
|
|
||||||
${{ matrix.BUILD_TYPE }}-14-
|
|
||||||
|
|
||||||
- name: Cache cargo rspy
|
- name: Cache cargo rspy
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}${{ matrix.SEP }}rspy${{ matrix.SEP }}target
|
path: ${{ github.workspace }}${{ matrix.SEP }}rspy${{ matrix.SEP }}target
|
||||||
key: |
|
key: ${{ runner.os }}-cargo-rspy-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-14-
|
||||||
${{ runner.os }}-cargo-rspy-
|
|
||||||
${{ hashFiles('**/requirements.*') }}-
|
|
||||||
${{ hashFiles('**/setup.py') }}-
|
|
||||||
${{ hashFiles('**/Makefile') }}-
|
|
||||||
${{ hashFiles('**/Cargo.toml') }}-
|
|
||||||
${{ matrix.BUILD_TYPE }}-14-
|
|
||||||
|
|
||||||
- name: Cache pacman
|
- name: Cache pacman
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
@ -177,9 +143,7 @@ jobs:
|
||||||
id: cache-pacman
|
id: cache-pacman
|
||||||
with:
|
with:
|
||||||
path: C:\Program Files\Git
|
path: C:\Program Files\Git
|
||||||
key: |
|
key: ${{ runner.os }}-pacman-${{ hashFiles('**/checks.yml') }}-14-
|
||||||
${{ runner.os }}-pacman-
|
|
||||||
${{ hashFiles('**/checks.yml') }}-14-
|
|
||||||
|
|
||||||
- name: Set up pacman, rsync
|
- name: Set up pacman, rsync
|
||||||
if: matrix.os == 'windows-latest' && steps.cache-pacman.outputs.cache-hit != 'true'
|
if: matrix.os == 'windows-latest' && steps.cache-pacman.outputs.cache-hit != 'true'
|
||||||
|
|
Loading…
Reference in a new issue