ci: clean stale Windows CMake cache

This commit is contained in:
Mumulhl
2026-06-09 19:32:46 +08:00
parent fc2aa4d0e2
commit 288d7305d2
+9
View File
@@ -61,6 +61,15 @@ jobs:
restore-keys: |
${{ runner.os }}-build-
- name: Clean stale Windows CMake cache
shell: pwsh
run: |
# The restored build cache may contain a CMake generator from an older
# GitHub runner image (for example VS 2022). windows-latest is moving
# to windows-2025-vs2026, whose generator is VS 2026, and CMake refuses
# to reuse a build directory created by a different generator.
Remove-Item -Recurse -Force build/windows -ErrorAction SilentlyContinue
- name: Build Windows
shell: pwsh
run: |