Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,15 @@ jobs:
# Caching .build/ keyed on Package.swift + Package.resolved + source
# hash. Subsequent runs reuse compiled modules — incremental builds
# in SPM are fast, and Swift detects source changes correctly.
#
# We deliberately DO NOT cache ~/Library/Developer/Xcode/DerivedData:
# `swift test` never writes there (only Xcode does), and starting with
# actions/cache@v5 the post-step fails when asked to save a path that
# doesn't exist.
- name: Cache SwiftPM build
uses: actions/cache@v4
with:
path: |
.build
~/Library/Developer/Xcode/DerivedData
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift', 'Package.resolved', 'Sources/**/*.swift', 'Tests/**/*.swift') }}
restore-keys: ${{ runner.os }}-spm-

Expand Down
Loading