Unverified Commit 8469c94c authored by Jan T. Sott's avatar Jan T. Sott Committed by GitHub
Browse files

Add Bun example (#1456)

* Add Bun example

* Fix Bun Windows example
parent 3624ceb2
Loading
Loading
Loading
Loading
+1
Changes for README.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ Every programming language and framework has its own way of caching.

See [Examples](examples.md) for a list of `actions/cache` implementations for use with:

* [Bun](./examples.md#bun)
* [C# - NuGet](./examples.md#c---nuget)
* [Clojure - Lein Deps](./examples.md#clojure---lein-deps)
* [D - DUB](./examples.md#d---dub)
+21
Changes for examples.md: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Examples

- [Bun](#bun)
- [C# - NuGet](#c---nuget)
- [Clojure - Lein Deps](#clojure---lein-deps)
- [D - DUB](#d---dub)
@@ -41,6 +42,26 @@
- [Swift - Mint](#swift---mint)
- [* - Bazel](#---bazel)

## Bun

```yaml
- uses: actions/cache@v4
  with:
    path: |
      ~/.bun/install/cache
    key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
```

### Windows

```yaml
- uses: actions/cache@v4
  with:
    path: |
      ~\.bun
    key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
```

## C# - NuGet

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