From edf471f655e5fdda49f9e4cacca3e4d954bd8790 Mon Sep 17 00:00:00 2001 From: mauwii Date: Mon, 17 Oct 2022 04:43:06 +0200 Subject: [PATCH] update cache steps remove restore-keys, make keys uniuqe --- .github/workflows/test-invoke-conda.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-invoke-conda.yml b/.github/workflows/test-invoke-conda.yml index e81444c5c4..e2643facfa 100644 --- a/.github/workflows/test-invoke-conda.yml +++ b/.github/workflows/test-invoke-conda.yml @@ -78,8 +78,7 @@ jobs: conda-env-file: ${{ matrix.environment-file }} with: path: ${{ env.CONDA }}/envs/${{ env.CONDA_ENV_NAME }} - key: ${{ env.cache-name }} - restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('${{ matrix.environment-file }}') }} + key: env-${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }} - name: Use cached Conda Packages uses: actions/cache@v3 @@ -88,8 +87,7 @@ jobs: conda-env-file: ${{ matrix.environment-file }} with: path: ${{ env.CONDA_PKGS_DIR }} - key: ${{ env.cache-name }} - restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('${{ matrix.environment-file }}') }} + key: pkgs-${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }} - name: Activate Conda Env uses: conda-incubator/setup-miniconda@v2 @@ -126,4 +124,3 @@ jobs: with: name: results_${{ matrix.os }} path: outputs/img-samples -