Unverified Commit 4b8460cb authored by Michael Vorburger ⛑️'s avatar Michael Vorburger ⛑️ Committed by GitHub
Browse files

Create separate Linux/macOS examples for Bazel

parent ef11f54e
Loading
Loading
Loading
Loading
+18 −4
Changes for examples.md: 18 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -661,18 +661,32 @@ steps:

## * - Bazel

[`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` base image.

### Linux

```yaml
- name: Cache Bazel
  uses: actions/cache@v3
  with:
    path: |
      ~/.cache/bazel # Linux
      /private/var/tmp/_bazel_runner/ # macOS
      # TODO Add Windows if you know where it is, based on https://bazel.build/remote/output-directories
      ~/.cache/bazel
    key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
    restore-keys: |
      ${{ runner.os }}-bazel-
- run: bazelisk test //...
```

[`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` base image.
### macOS

```yaml
- name: Cache Bazel
  uses: actions/cache@v3
  with:
    path: |
      /private/var/tmp/_bazel_runner/
    key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
    restore-keys: |
      ${{ runner.os }}-bazel-
- run: bazelisk test //...
```