Skip to content

Commit

Permalink
Merge pull request #243 from openconfig/marcushines-patch-2
Browse files Browse the repository at this point in the history
Update ci-cpp-build-gnoi.yml
  • Loading branch information
robshakir authored Jan 6, 2025
2 parents bde494f + 41f5551 commit b36fd2b
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/ci-cpp-build-gnoi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,10 @@ jobs:
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 //...
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Bazel
uses: bazelbuild/setup-bazelisk@v2
- name: Build
run: bazel build //...

0 comments on commit b36fd2b

Please sign in to comment.