From ddc4681e8d6eabda58d70f6d8430d154964e5319 Mon Sep 17 00:00:00 2001 From: Shigeki Karita Date: Mon, 11 May 2020 23:24:05 +0900 Subject: [PATCH] Add D example. (#303) --- README.md | 1 + examples.md | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/README.md b/README.md index a979c38..33fe48c 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,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: - [C# - Nuget](./examples.md#c---nuget) +- [D - DUB](./examples.md#d---dub) - [Elixir - Mix](./examples.md#elixir---mix) - [Go - Modules](./examples.md#go---modules) - [Haskell - Cabal](./examples.md#haskell---cabal) diff --git a/examples.md b/examples.md index e9f43cc..ce31929 100644 --- a/examples.md +++ b/examples.md @@ -2,6 +2,7 @@ - [Examples](#examples) - [C# - NuGet](#c---nuget) + - [D - DUB](#d---dub) - [Elixir - Mix](#elixir---mix) - [Go - Modules](#go---modules) - [Haskell - Cabal](#haskell---cabal) @@ -57,6 +58,30 @@ steps: ${{ runner.os }}-nuget- ``` +## D - DUB + +### POSIX + +```yaml +- uses: actions/cache@v1 + with: + path: ~/.dub + key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.json') }} + restore-keys: | + ${{ runner.os }}-dub- +``` + +### Windows + +```yaml +- uses: actions/cache@v1 + with: + path: ~\AppData\Local\dub + key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.json') }} + restore-keys: | + ${{ runner.os }}-dub- +``` + ## Elixir - Mix ```yaml - uses: actions/cache@v1