Compare commits

...

3 Commits

Author SHA1 Message Date
Yakiyo 33f2e3edfe
Merge 59284659c6 into 2cdf405574 2024-10-04 21:11:43 -04:00
Yakiyo 59284659c6
link to windows and linux/macos too 2023-06-15 23:56:00 +06:00
Yakiyo 79aefb1c78
Add example for dart 2023-06-15 23:50:33 +06:00
1 changed files with 25 additions and 2 deletions

View File

@ -5,16 +5,19 @@
- [D - DUB](#d---dub) - [D - DUB](#d---dub)
- [POSIX](#posix) - [POSIX](#posix)
- [Windows](#windows) - [Windows](#windows)
- [Dart](#dart)
- [Linux / Macos](#linux--macos)
- [Windows](#windows-1)
- [Deno](#deno) - [Deno](#deno)
- [Linux](#linux) - [Linux](#linux)
- [macOS](#macos) - [macOS](#macos)
- [Windows](#windows-1) - [Windows](#windows-2)
- [Elixir - Mix](#elixir---mix) - [Elixir - Mix](#elixir---mix)
- [Erlang - Rebar3](#erlang--rebar3) - [Erlang - Rebar3](#erlang--rebar3)
- [Go - Modules](#go---modules) - [Go - Modules](#go---modules)
- [Linux](#linux-1) - [Linux](#linux-1)
- [macOS](#macos-1) - [macOS](#macos-1)
- [Windows](#windows-2) - [Windows](#windows-3)
- [Haskell - Cabal](#haskell---cabal) - [Haskell - Cabal](#haskell---cabal)
- [Haskell - Stack](#haskell---stack) - [Haskell - Stack](#haskell---stack)
- [Java - Gradle](#java---gradle) - [Java - Gradle](#java---gradle)
@ -119,6 +122,26 @@ steps:
restore-keys: | restore-keys: |
${{ runner.os }}-dub- ${{ 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 ## Deno