Skip to content

Commit c9b483b

Browse files
committed
update cache action
1 parent 2d31701 commit c9b483b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/actions/setup/action.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,20 @@ runs:
1515
with:
1616
swift-version: ${{ inputs.swift }}
1717
- uses: irgaly/setup-mint@v1
18-
- if: contains(inputs.os, 'macos')
18+
- name: "Xcode Cache"
19+
if: contains(inputs.os, 'macos')
1920
uses: irgaly/xcode-cache@v1
2021
with:
2122
key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
22-
restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
23-
# There is no `Xcode/DerivedData`; use `.build` instead.
24-
deriveddata-directory: .build
23+
restore-keys: |
24+
xcode-cache-deriveddata-${{ github.workflow }}-
25+
- name: "Swift Package Manager Cache"
26+
uses: actions/cache@v3
27+
with:
28+
path: .build
29+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
30+
restore-keys: |
31+
${{ runner.os }}-spm-
2532
2633
# Hint: Use Composite Actions
2734
# - https://stackoverflow.com/a/75735736/9801139

0 commit comments

Comments
 (0)