Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit b9c405d

Browse files
authored
Add cache step to CI jobs (#157)
1 parent 4898aa2 commit b9c405d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on:
3+
on:
44
push:
55
branches: [master]
66
pull_request:
@@ -13,6 +13,12 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v1
16+
- uses: actions/cache@v2
17+
with:
18+
path: .build
19+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
20+
restore-keys: |
21+
${{ runner.os }}-spm-
1622
- name: Build and Test
1723
run: swift test -c release
1824
env:
@@ -27,6 +33,12 @@ jobs:
2733
steps:
2834
- name: Checkout
2935
uses: actions/checkout@v1
36+
- uses: actions/cache@v2
37+
with:
38+
path: .build
39+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
40+
restore-keys: |
41+
${{ runner.os }}-spm-
3042
- name: Install System Dependencies
3143
run: |
3244
apt-get update

0 commit comments

Comments
 (0)