Skip to content

Commit c98374e

Browse files
committed
ci: version the Windows deps cache key to drop pre-overhaul caches
The old restore-keys fallback restored deps built against the setup-micromamba env location, whose path is baked into the thorin/runtime cmake exports and no longer exists.
1 parent 3a6a02d commit c98374e

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ jobs:
3434
uses: actions/cache@v4
3535
with:
3636
path: deps
37-
key: anydsl-deps-${{ runner.os }}-${{ hashFiles('scripts/setup/config.json', 'scripts/setup/*.ps1') }}
37+
# v2: setup.ps1 provisions LLVM into deps/llvm-conda itself; caches
38+
# from the setup-micromamba era bake dead env paths into the AnyDSL
39+
# cmake exports and must never be restored.
40+
key: anydsl-deps-v2-${{ runner.os }}-${{ hashFiles('scripts/setup/config.json', 'scripts/setup/*.ps1') }}
3841
restore-keys: |
39-
anydsl-deps-${{ runner.os }}-
42+
anydsl-deps-v2-${{ runner.os }}-
4043
4144
- name: Cache CPM sources
4245
uses: actions/cache@v4

.github/workflows/release-windows.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ jobs:
4242
uses: actions/cache@v4
4343
with:
4444
path: deps
45-
key: anydsl-deps-${{ runner.os }}-${{ hashFiles('scripts/setup/config.json', 'scripts/setup/*.ps1') }}
45+
# v2: setup.ps1 provisions LLVM into deps/llvm-conda itself; caches
46+
# from the setup-micromamba era bake dead env paths into the AnyDSL
47+
# cmake exports and must never be restored.
48+
key: anydsl-deps-v2-${{ runner.os }}-${{ hashFiles('scripts/setup/config.json', 'scripts/setup/*.ps1') }}
4649
restore-keys: |
47-
anydsl-deps-${{ runner.os }}-
50+
anydsl-deps-v2-${{ runner.os }}-
4851
4952
- name: Cache CPM sources
5053
uses: actions/cache@v4

0 commit comments

Comments
 (0)