mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
Disabled the caches of cargo registry, index and python wheels
This commit is contained in:
parent
76bf3f8a03
commit
9bd28f151f
1 changed files with 23 additions and 21 deletions
44
.github/workflows/checks.yml
vendored
44
.github/workflows/checks.yml
vendored
|
@ -93,47 +93,49 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache pip wheels
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ${{ matrix.PIP_WHEELS_DIR }}
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-11-
|
|
||||||
|
|
||||||
- name: Cache pyenv
|
- name: Cache pyenv
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}${{ matrix.SEP }}pyenv
|
path: ${{ github.workspace }}${{ matrix.SEP }}pyenv
|
||||||
key: ${{ runner.os }}-pyenv-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/requirements.txt') }}-11-
|
key: ${{ runner.os }}-pyenv-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/requirements.txt') }}-12-
|
||||||
|
|
||||||
- name: Cache cargo index
|
# Disabling these caches for now because they do not seem to be used/help
|
||||||
uses: actions/cache@v1
|
# https://github.com/ankitects/anki/pull/528
|
||||||
with:
|
# - name: Cache pip wheels
|
||||||
path: ${{ matrix.CARGO_INDEX_DIR }}
|
# uses: actions/cache@v1
|
||||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}-11-
|
# with:
|
||||||
|
# path: ${{ matrix.PIP_WHEELS_DIR }}
|
||||||
|
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-12-
|
||||||
|
|
||||||
- name: Cache cargo registry
|
# - name: Cache cargo index
|
||||||
uses: actions/cache@v1
|
# uses: actions/cache@v1
|
||||||
with:
|
# with:
|
||||||
path: ${{ matrix.CARGO_REGISTRY_DIR }}
|
# path: ${{ matrix.CARGO_INDEX_DIR }}
|
||||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}-11-
|
# key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}-12-
|
||||||
|
|
||||||
|
# - name: Cache cargo registry
|
||||||
|
# uses: actions/cache@v1
|
||||||
|
# with:
|
||||||
|
# path: ${{ matrix.CARGO_REGISTRY_DIR }}
|
||||||
|
# key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}-12-
|
||||||
|
|
||||||
- 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: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-$${{ matrix.BUILD_TYPE }}-11-
|
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-$${{ matrix.BUILD_TYPE }}-12-
|
||||||
|
|
||||||
- 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: ${{ runner.os }}-cargo-rslib-${{ hashFiles('**/Cargo.toml') }}-$${{ matrix.BUILD_TYPE }}-11-
|
key: ${{ runner.os }}-cargo-rslib-${{ hashFiles('**/Cargo.toml') }}-$${{ matrix.BUILD_TYPE }}-12-
|
||||||
|
|
||||||
- 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: ${{ runner.os }}-cargo-rspy-${{ hashFiles('**/Cargo.toml') }}-$${{ matrix.BUILD_TYPE }}-11-
|
key: ${{ runner.os }}-cargo-rspy-${{ hashFiles('**/Cargo.toml') }}-$${{ matrix.BUILD_TYPE }}-12-
|
||||||
|
|
||||||
- name: Cache pacman
|
- name: Cache pacman
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
@ -141,7 +143,7 @@ jobs:
|
||||||
id: cache-pacman
|
id: cache-pacman
|
||||||
with:
|
with:
|
||||||
path: C:\Program Files\Git
|
path: C:\Program Files\Git
|
||||||
key: ${{ runner.os }}-pacman-${{ hashFiles('**/checks.yml') }}-11-
|
key: ${{ runner.os }}-pacman-${{ hashFiles('**/checks.yml') }}-12-
|
||||||
|
|
||||||
- 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