Skip to content

Commit 0fc3138

Browse files
committed
Added cache for Swift Package Manager in build workflow
1 parent b049396 commit 0fc3138

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
runs-on: macos-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
- uses: actions/cache@v2
13+
with:
14+
path: .build
15+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
16+
restore-keys: |
17+
${{ runner.os }}-spm-
1218
- name: Build and test
1319
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme 'CryptomatorCryptoLib' -destination 'platform=macOS' -enableCodeCoverage YES clean test | xcpretty
1420
- name: Upload code coverage report

0 commit comments

Comments
 (0)