Compare commits

...

3 Commits

Author SHA1 Message Date
Mogyuchi
2de04eaca5
Merge 2094592b9a into 8469c94c6a 2024-10-09 10:47:51 +02:00
Jan T. Sott
8469c94c6a
Add Bun example (#1456)
* Add Bun example

* Fix Bun Windows example
2024-10-08 19:53:09 +00:00
Mogyuchi
2094592b9a
docs: fix cleanup example to use pull_request_target trigger
Signed-off-by: Mogyuchi <mogyuchi@mogyuchi.jp>
2024-01-28 22:13:29 +09:00
3 changed files with 23 additions and 1 deletions

View File

@ -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)

View File

@ -1,5 +1,6 @@
# 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):

View File

@ -46,7 +46,7 @@ This workflow uses `gh-actions-cache` to delete all the caches created by a bran
```yaml
name: cleanup caches by a branch
on:
pull_request:
pull_request_target:
types:
- closed
workflow_dispatch: