fix conda pkg cache name

also change content of hashFile-function
This commit is contained in:
mauwii 2022-10-17 04:02:38 +02:00
parent e7688c53b8
commit 5b02c8ca4a
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -79,17 +79,17 @@ jobs:
with: with:
path: ${{ env.CONDA }}/envs/${{ env.CONDA_ENV_NAME }} path: ${{ env.CONDA }}/envs/${{ env.CONDA_ENV_NAME }}
key: ${{ env.cache-name }} key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }} restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('${{ matrix.environment-file }}') }}
- name: Use cached Conda Packages - name: Use cached Conda Packages
uses: actions/cache@v3 uses: actions/cache@v3
env: env:
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }} cache-name: cache-conda-pkgs-${{ env.CONDA_ENV_NAME }}
conda-env-file: ${{ matrix.environment-file }} conda-env-file: ${{ matrix.environment-file }}
with: with:
path: ${{ env.CONDA_PKGS_DIR }} path: ${{ env.CONDA_PKGS_DIR }}
key: ${{ env.cache-name }} key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }} restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('${{ matrix.environment-file }}') }}
- name: Activate Conda Env - name: Activate Conda Env
uses: conda-incubator/setup-miniconda@v2 uses: conda-incubator/setup-miniconda@v2