Skip to content

Commit 26aca84

Browse files
authored
chore(ci): cache .build swift dir (#3330)
1 parent 80a059a commit 26aca84

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,16 @@ runs:
202202
with:
203203
swift-version: ${{ steps.versions.outputs.SWIFT_VERSION }}
204204

205+
- name: Cache the build folder
206+
id: cache-swift-build
207+
if: ${{ inputs.language == 'swift' }}
208+
uses: actions/cache@v4
209+
with:
210+
path: |
211+
clients/algoliasearch-client-swift/.build
212+
tests/output/swift/.build
213+
key: swift-build-${{ steps.versions.outputs.SWIFT_VERSION }}-${{ runner.os }}
214+
205215
- name: Set swiftformat version
206216
if: ${{ inputs.language == 'swift' }}
207217
id: swiftformat-version
@@ -216,7 +226,7 @@ runs:
216226
ref: ${{ steps.swiftformat-version.outputs.SWIFTFORMAT_VERSION }}
217227
path: swiftformat
218228

219-
- name: Cache the build folder
229+
- name: Cache the build folder for swiftformat
220230
id: cache-swiftformat
221231
if: ${{ inputs.language == 'swift' }}
222232
uses: actions/cache@v4

0 commit comments

Comments
 (0)