Skip to content

Commit

Permalink
Use Personal Cache Folder in C# Example
Browse files Browse the repository at this point in the history
Ref: #115
  • Loading branch information
Nogic authored and GitHub committed Dec 10, 2019
1 parent 4809f4a commit 002d3a7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions examples.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Examples

- [C# - Nuget](#c---nuget)
- [C# - NuGet](#c---nuget)
- [Elixir - Mix](#elixir---mix)
- [Go - Modules](#go---modules)
- [Java - Gradle](#java---gradle)
Expand All @@ -14,16 +14,21 @@
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)

## C# - Nuget
## C# - NuGet
Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies):

```yaml
- uses: actions/cache@v1
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
env:
# Use personal cache folder because global cache may have huge packages like Xamarin.
# Learn more, see issue #115.
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/cache@v1
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
```
## Elixir - Mix
Expand Down

0 comments on commit 002d3a7

Please sign in to comment.