Skip to content

Commit c7c46bc

Browse files
author
Vipul
authored
Merge pull request #707 from duxtland/main
Add Deno cache example
2 parents ab4bea2 + 3fe001f commit c7c46bc

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us
9090

9191
- [C# - Nuget](./examples.md#c---nuget)
9292
- [D - DUB](./examples.md#d---dub)
93+
- [Deno](./examples.md#deno)
9394
- [Elixir - Mix](./examples.md#elixir---mix)
9495
- [Go - Modules](./examples.md#go---modules)
9596
- [Haskell - Cabal](./examples.md#haskell---cabal)

examples.md

+43-3
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44
- [D - DUB](#d---dub)
55
- [POSIX](#posix)
66
- [Windows](#windows)
7-
- [Elixir - Mix](#elixir---mix)
8-
- [Go - Modules](#go---modules)
7+
- [Deno](#deno)
98
- [Linux](#linux)
109
- [macOS](#macos)
1110
- [Windows](#windows-1)
11+
- [Elixir - Mix](#elixir---mix)
12+
- [Go - Modules](#go---modules)
13+
- [Linux](#linux-1)
14+
- [macOS](#macos-1)
15+
- [Windows](#windows-2)
1216
- [Haskell - Cabal](#haskell---cabal)
1317
- [Haskell - Stack](#haskell---stack)
1418
- [Java - Gradle](#java---gradle)
1519
- [Java - Maven](#java---maven)
1620
- [Node - npm](#node---npm)
1721
- [macOS and Ubuntu](#macos-and-ubuntu)
18-
- [Windows](#windows-2)
22+
- [Windows](#windows-3)
1923
- [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config)
2024
- [Node - Lerna](#node---lerna)
2125
- [Node - Yarn](#node---yarn)
@@ -103,6 +107,42 @@ steps:
103107
${{ runner.os }}-dub-
104108
```
105109

110+
## Deno
111+
112+
### Linux
113+
114+
```yaml
115+
- uses: actions/cache@v2
116+
with:
117+
path: |
118+
~/.deno
119+
~/.cache/deno
120+
key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }}
121+
```
122+
123+
### macOS
124+
125+
```yaml
126+
- uses: actions/cache@v2
127+
with:
128+
path: |
129+
~/.deno
130+
~/Library/Caches/deno
131+
key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }}
132+
```
133+
134+
### Windows
135+
136+
```yaml
137+
- uses: actions/cache@v2
138+
with:
139+
path: |
140+
~\.deno
141+
%LocalAppData%\deno
142+
key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }}
143+
```
144+
145+
106146
## Elixir - Mix
107147

108148
```yaml

0 commit comments

Comments
 (0)