Commit e756b19f authored by Dave Hadka's avatar Dave Hadka
Browse files

Merge branch 'master' of http://github.com/actions/cache into fix-upload-chunk

parents 354f70a5 ddc4681e
Loading
Loading
Loading
Loading
+11
Changes for .github/workflows/workflow.yml: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -45,6 +45,17 @@ jobs:
      run: npm run lint
    - name: Build & Test
      run: npm run test
    - name: Ensure dist/ folder is up-to-date
      if: ${{ runner.os == 'Linux' }}
      shell: bash
      run: |
        npm run build
        if [ "$(git status --porcelain | wc -l)" -gt "0" ]; then
          echo "Detected uncommitted changes after build.  See status below:"
          git diff
          exit 1
        fi
        

  # End to end save and restore
  test-save:
+1
Changes for README.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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)
+25
Changes for examples.md: 25 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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