Skip to content

Commit b36fd2b

Browse files
authored
Merge pull request #243 from openconfig/marcushines-patch-2
Update ci-cpp-build-gnoi.yml
2 parents bde494f + 41f5551 commit b36fd2b

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/ci-cpp-build-gnoi.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,10 @@ jobs:
1414
env:
1515
BAZEL: bazelisk-linux-amd64
1616
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
submodules: recursive
20-
21-
- name: Mount bazel cache
22-
uses: actions/cache@v4
23-
with:
24-
# See https://docs.bazel.build/versions/master/output_directories.html
25-
path: "~/.cache/bazel"
26-
# Create a new cache entry whenever Bazel files change.
27-
# See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
28-
key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }}
29-
restore-keys: |
30-
bazel-${{ runner.os }}-build-
31-
- name: Install bazelisk
32-
run: |
33-
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL"
34-
chmod +x $BAZEL
35-
sudo mv $BAZEL /usr/local/bin/bazel
36-
37-
- name: Build
38-
run: bazel build //...
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
- name: Setup Bazel
21+
uses: bazelbuild/setup-bazelisk@v2
22+
- name: Build
23+
run: bazel build //...

0 commit comments

Comments
 (0)