chore(deps): update bazel c++ tooling repositories #318
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: jidicula/clang-format-action@v4.9.0 | |
with: { clang-format-version: "15" } | |
test-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
/Users/runneradmin/AppData/Local/bazelisk | |
/Users/runneradmin/.cache/bazel-disk-cache | |
key: ${{runner.os}}-bazel-cache | |
- uses: actions/checkout@v3 | |
- run: bazel --bazelrc=.bazelrc --bazelrc=.github/workflows/ci-windows.bazelrc test //... | |
test-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Mount bazel caches | |
uses: actions/cache@v3 | |
with: | |
path: | | |
"~/.cache/bazel" | |
"~/.cache/bazel-repo" | |
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }} | |
restore-keys: bazel-cache- | |
- name: bazel test //... | |
env: | |
# Bazelisk will download bazel to here, ensure it is cached between runs. | |
XDG_CACHE_HOME: ~/.cache/bazel-repo | |
run: bazel --bazelrc=.bazelrc --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc test //... |