Commit 4b381be6 authored by David Bernard's avatar David Bernard Committed by Michael Vorburger
Browse files

Add example for Bazel

parent 940f3d7c
Loading
Loading
Loading
Loading
+15
Changes for examples.md: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
- [Swift - Swift Package Manager](#swift---swift-package-manager)
- [Swift - Mint](#swift---mint)
- [* - Bazel](#---bazel)

## C# - NuGet

@@ -657,3 +658,17 @@ steps:
      restore-keys: |
        ${{ runner.os }}-mint-
```

## * - Bazel

Bazel cache has a good handle to check if cached content should be rebuild or not based on its inputs like a hash(command + files). So using the latest cache of the branch is enough, no need to suffix with `hashFiles('**/...')`.

```yaml
- name: Cache Bazel
  uses: actions/cache@v2
  with:
    path: |
      ~/.cache/bazelisk
      ~/.cache/bazel
    key: ${{ runner.os }}-bazel
```