From de7c17c6a9c81cf9b0c883159caedd530754f0c6 Mon Sep 17 00:00:00 2001 From: Jheyson Saavedra Date: Sat, 15 Jan 2022 19:33:29 -0500 Subject: [PATCH 1/2] chore: add Deno cache example --- examples.md | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/examples.md b/examples.md index 8921857..b21ae28 100644 --- a/examples.md +++ b/examples.md @@ -4,17 +4,21 @@ - [D - DUB](#d---dub) - [POSIX](#posix) - [Windows](#windows) -- [Elixir - Mix](#elixir---mix) -- [Go - Modules](#go---modules) +- [Deno](#deno) - [Linux](#linux) - [macOS](#macos) - [Windows](#windows-1) +- [Elixir - Mix](#elixir---mix) +- [Go - Modules](#go---modules) + - [Linux](#linux-1) + - [macOS](#macos-1) + - [Windows](#windows-2) - [Haskell - Cabal](#haskell---cabal) - [Java - Gradle](#java---gradle) - [Java - Maven](#java---maven) - [Node - npm](#node---npm) - [macOS and Ubuntu](#macos-and-ubuntu) - - [Windows](#windows-2) + - [Windows](#windows-3) - [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config) - [Node - Lerna](#node---lerna) - [Node - Yarn](#node---yarn) @@ -102,6 +106,42 @@ steps: ${{ runner.os }}-dub- ``` +## Deno + +### Linux + +```yaml +- uses: actions/cache@v2 + with: + path: | + ~/.deno + ~/.cache/deno + key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }} +``` + +### macOS + +```yaml +- uses: actions/cache@v2 + with: + path: | + ~/.deno + ~/Library/Caches/deno + key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }} +``` + +### Windows + +```yaml +- uses: actions/cache@v2 + with: + path: | + ~\.deno + %LocalAppData%\deno + key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }} +``` + + ## Elixir - Mix ```yaml From 3fe001f5cad7205372ef2f81b293e59f62f1c139 Mon Sep 17 00:00:00 2001 From: Jheyson Saavedra Date: Wed, 23 Feb 2022 16:18:41 -0500 Subject: [PATCH 2/2] chore: add Deno cache example to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bd74444..8ba68bf 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us - [C# - Nuget](./examples.md#c---nuget) - [D - DUB](./examples.md#d---dub) +- [Deno](./examples.md#deno) - [Elixir - Mix](./examples.md#elixir---mix) - [Go - Modules](./examples.md#go---modules) - [Haskell - Cabal](./examples.md#haskell---cabal)