Skip to content

Commit deba212

Browse files
committed
Update cache key format in CI workflow to include Python version and OS type
1 parent 643ba75 commit deba212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci-meson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
path: ~/conda_pkgs_dir
7272
key:
73-
${{ runner.os }}-conda-${{ hashFiles('environment-3.11-linux.yml') }}
73+
${{ runner.os }}-conda-${{ matrix.python }}-${{ hashFiles(format('environment-{0}-{1}.yml', matrix.python, startsWith(matrix.os, 'macos') && (startsWith(runner.arch, 'ARM') && 'macos' || 'macos-x86_64') || startsWith(matrix.os, 'ubuntu') && 'linux' || 'win')) }}
7474

7575
- name: Setup MSVC environment
7676
if: runner.os == 'windows'

0 commit comments

Comments
 (0)