From e3a96784299332c194754c763dfed839db1b2d34 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Thu, 29 Aug 2024 23:02:34 +0200 Subject: [PATCH] Add Bun example --- README.md | 1 + examples.md | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/README.md b/README.md index 9da9474..9664651 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,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) diff --git a/examples.md b/examples.md index d47780b..7c943d0 100644 --- a/examples.md +++ b/examples.md @@ -1,5 +1,6 @@ # Examples +- [Bun](#bun) - [C# - NuGet](#c---nuget) - [Clojure - Lein Deps](#clojure---lein-deps) - [D - DUB](#d---dub) @@ -41,6 +42,27 @@ - [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: | + ~\.deno + ~\AppData\Local\deno + key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }} +``` + ## C# - NuGet Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies):