Skip to content

Commit 8e4353f

Browse files
authored
bazel: Pin Bazel to 5.x (#1279)
Github Actions bazel has been updated to the latest Bazel LTS release; 6.0 Unfortunately this breaks the libsbp build. For now we've pinned the bazel this repository uses to version 5.4 until the version incompatibility is resolved.
1 parent 7a71961 commit 8e4353f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.bazeliskrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
USE_BAZEL_VERSION=5.4.0

.github/workflows/c.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,15 @@ jobs:
140140
- uses: actions/checkout@v2
141141
with:
142142
submodules: recursive
143+
- name: Install Bazel
144+
run: |
145+
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.15.0/bazelisk-linux-amd64"
146+
mkdir -p "${GITHUB_WORKSPACE}/bin/"
147+
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
148+
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
143149
- name: Bazel Build & Test
144-
run:
145-
bazel test //...
150+
run: |
151+
${GITHUB_WORKSPACE}/bin/bazel test //...
146152
147153
148154
windows-2019:

0 commit comments

Comments
 (0)