Skip to content

Commit ceb3430

Browse files
committed
ci: add Linux cache to improve build performance
1 parent 0c4a946 commit ceb3430

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
@@ -81,6 +81,13 @@ jobs:
8181
steps:
8282
- uses: actions/checkout@v5
8383

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

@@ -94,6 +101,13 @@ jobs:
94101
steps:
95102
- uses: actions/checkout@v5
96103

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

0 commit comments

Comments
 (0)