Skip to content

Commit

Permalink
Add Swift Package Manager (SPM) example (#159)
Browse files Browse the repository at this point in the history
* Add Swift - SPM to examples

* Add link SPM example link to readme

* remove extra newline

* remove another extra newline
  • Loading branch information
Florian Kostenzer authored and GitHub committed Jan 29, 2020
1 parent b6d538e commit e437762
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us
- [Scala - SBT](./examples.md#scala---sbt)
- [Swift, Objective-C - Carthage](./examples.md#swift-objective-c---carthage)
- [Swift, Objective-C - CocoaPods](./examples.md#swift-objective-c---cocoapods)

- [Swift - Swift Package Manager](./examples.md#swift---swift-package-manager)

## Cache Limits

Expand Down
12 changes: 12 additions & 0 deletions examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [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):
Expand Down Expand Up @@ -373,3 +374,14 @@ 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-
```

0 comments on commit e437762

Please sign in to comment.