From e0fc71cddd827cd88c2b3813958a579c9916b4ce Mon Sep 17 00:00:00 2001 From: Florian Kostenzer Date: Wed, 22 Jan 2020 19:19:45 +0100 Subject: [PATCH] Add Swift - SPM to examples --- examples.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples.md b/examples.md index f729bea..15140ac 100644 --- a/examples.md +++ b/examples.md @@ -16,6 +16,8 @@ - [Scala - SBT](#scala---sbt) - [Swift, Objective-C - Carthage](#swift-objective-c---carthage) - [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods) +- [Swift - Swift Package Manager](#swift---swift-package-manager) + ## C# - NuGet Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies): @@ -373,3 +375,15 @@ When dependencies are installed later in the workflow, we must specify the same restore-keys: | ${{ runner.os }}-pods- ``` + +## Swift - Swift Package Manager + +```yaml +- uses: actions/cache@v1 + with: + path: .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- +``` +