Skip to content

Commit 04f198b

Browse files
author
Vipul
authored
Merge pull request #1132 from vorburger/bazel-example
Bazel example (Take #2️⃣)
2 parents ea05037 + bd9b49b commit 04f198b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

examples.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
4040
- [Swift - Swift Package Manager](#swift---swift-package-manager)
4141
- [Swift - Mint](#swift---mint)
42+
- [* - Bazel](#---bazel)
4243

4344
## C# - NuGet
4445

@@ -657,3 +658,35 @@ steps:
657658
restore-keys: |
658659
${{ runner.os }}-mint-
659660
```
661+
662+
## * - Bazel
663+
664+
[`bazelisk`](https://github.com/bazelbuild/bazelisk) does not have be to separately downloaded and installed because it's already included in GitHub's `ubuntu-latest` and `macos-latest` base images.
665+
666+
### Linux
667+
668+
```yaml
669+
- name: Cache Bazel
670+
uses: actions/cache@v3
671+
with:
672+
path: |
673+
~/.cache/bazel
674+
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
675+
restore-keys: |
676+
${{ runner.os }}-bazel-
677+
- run: bazelisk test //...
678+
```
679+
680+
### macOS
681+
682+
```yaml
683+
- name: Cache Bazel
684+
uses: actions/cache@v3
685+
with:
686+
path: |
687+
/private/var/tmp/_bazel_runner/
688+
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
689+
restore-keys: |
690+
${{ runner.os }}-bazel-
691+
- run: bazelisk test //...
692+
```

0 commit comments

Comments
 (0)