Skip to content

Commit e4aa0e6

Browse files
committed
ci: add Linux cache to improve build performance
1 parent d7e9759 commit e4aa0e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

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

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

@@ -96,6 +103,13 @@ jobs:
96103
steps:
97104
- uses: actions/checkout@v5
98105

106+
- name: Cache Swift packages
107+
uses: actions/cache@v4
108+
with:
109+
path: .build
110+
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
111+
restore-keys: ${{ runner.os }}-spm-
112+
99113
- name: Build
100114
run: swift build
101115

0 commit comments

Comments
 (0)