Skip to content

Update build to support Bazel 8/bzlmod #1207

Update build to support Bazel 8/bzlmod

Update build to support Bazel 8/bzlmod #1207

name: "bazel build"
on:
push:
branches: [ master ]
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
build:

Check failure on line 11 in .github/workflows/ci-cpp-build-gnmi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cpp-build-gnmi.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
runs-on: ubuntu-latest
env:
BAZEL: bazelisk-linux-amd64
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Mount bazel cache
uses: actions/cache@v2
with:
path: "~/.cache/bazel"
key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }}
restore-keys: |
bazel-${{ runner.os }}-build-
- name: Setup Bazel
uses: bazelbuild/setup-bazelisk@v3
- name: Build
run: bazel build //...
- name: Test
run: bazel test //...