mirror of
https://github.com/actions/cache.git
synced 2024-12-01 14:22:24 +08:00
Compare commits
3 Commits
00f725dcec
...
c9088ed559
Author | SHA1 | Date | |
---|---|---|---|
|
c9088ed559 | ||
|
59284659c6 | ||
|
79aefb1c78 |
27
examples.md
27
examples.md
@ -5,16 +5,19 @@
|
||||
- [D - DUB](#d---dub)
|
||||
- [POSIX](#posix)
|
||||
- [Windows](#windows)
|
||||
- [Dart](#dart)
|
||||
- [Linux / Macos](#linux--macos)
|
||||
- [Windows](#windows-1)
|
||||
- [Deno](#deno)
|
||||
- [Linux](#linux)
|
||||
- [macOS](#macos)
|
||||
- [Windows](#windows-1)
|
||||
- [Windows](#windows-2)
|
||||
- [Elixir - Mix](#elixir---mix)
|
||||
- [Erlang - Rebar3](#erlang--rebar3)
|
||||
- [Go - Modules](#go---modules)
|
||||
- [Linux](#linux-1)
|
||||
- [macOS](#macos-1)
|
||||
- [Windows](#windows-2)
|
||||
- [Windows](#windows-3)
|
||||
- [Haskell - Cabal](#haskell---cabal)
|
||||
- [Haskell - Stack](#haskell---stack)
|
||||
- [Java - Gradle](#java---gradle)
|
||||
@ -119,6 +122,26 @@ steps:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-dub-
|
||||
```
|
||||
## Dart
|
||||
|
||||
### Linux / Macos
|
||||
```yaml
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache/
|
||||
key: ${{ runner.os }}-dart-${{ hashFiles('**/pubspec.lock') }}
|
||||
```
|
||||
|
||||
### Windows
|
||||
On windows the global package cache is located at `%LOCALAPPDATA%\Pub\Cache` but may vary due to different windows version. Refer to the [docs](https://dart.dev/tools/pub/cmd/pub-get#the-system-package-cache)
|
||||
```yaml
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/AppData/Local/Pub/Cache/
|
||||
key: ${{ runner.os }}-dart-${{ hashFiles('**/pubspec.lock') }}
|
||||
```
|
||||
|
||||
## Deno
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user