Skip to content

Commit 8dd6a3d

Browse files
authored
Stop caching Xcode's module cache between CI runs (#202)
Clang module files record the mtime of the SDK headers they were built from. When the runner image updates its Xcode, a restored ModuleCache.noindex is rejected wholesale ("has been modified since the module file was built"), which is what broke main after #188 landed. Keep caching DerivedData and the SwiftPM cache, but let the module cache rebuild; it is cheap.
1 parent b4d3edd commit 8dd6a3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
with:
3333
path: |
3434
~/Library/Developer/Xcode/DerivedData
35+
!~/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
3536
~/Library/Caches/org.swift.swiftpm
3637
key: ${{ runner.os }}-xcode-${{ matrix.xcode }}-derived-${{ hashFiles('**/Package.resolved') }}
3738
restore-keys: |

0 commit comments

Comments
 (0)