Bump openconfig/common-ci from 125b6b58286d116b216e45c33cb859f547965d61 to 66c8f8f6a58d5f9c9e84efe89f542b08cb6a0a33 #1449
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: "bazel build" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
BAZEL: bazelisk-linux-amd64 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Mount bazel cache | |
uses: actions/cache@v4 | |
with: | |
# See https://docs.bazel.build/versions/master/output_directories.html | |
path: "~/.cache/bazel" | |
# Create a new cache entry whenever Bazel files change. | |
# See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows | |
key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} | |
restore-keys: | | |
bazel-${{ runner.os }}-build- | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" | |
chmod +x $BAZEL | |
sudo mv $BAZEL /usr/local/bin/bazel | |
- name: Build | |
run: bazel build //... |