Unverified Commit 002d3a77 authored by Nogic's avatar Nogic Committed by GitHub
Browse files

Use Personal Cache Folder in C# Example

Ref: #115
parent 4809f4ad
Loading
Loading
Loading
Loading
+8 −3
Changes for examples.md: 8 added lines, 3 removed lines.
Original line number Diff line number Diff line
# Examples

- [C# - Nuget](#c---nuget)
- [C# - NuGet](#c---nuget)
- [Elixir - Mix](#elixir---mix)
- [Go - Modules](#go---modules)
- [Java - Gradle](#java---gradle)
@@ -14,13 +14,18 @@
- [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
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: ~/.nuget/packages
      path: ${{ github.workspace }}/.nuget/packages
      key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
      restore-keys: |
        ${{ runner.os }}-nuget-