Skip to content

Commit 08f5864

Browse files
committed
ci: add Linux cache to improve build performance
1 parent 9cda517 commit 08f5864

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ jobs:
8484
steps:
8585
- uses: actions/checkout@v5
8686

87+
- name: Cache Swift packages
88+
uses: actions/cache@v4
89+
with:
90+
path: .build
91+
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
92+
restore-keys: ${{ runner.os }}-spm-
93+
8794
- name: Build
8895
run: swift build
8996

0 commit comments

Comments
 (0)