Skip to content

Commit 434c10f

Browse files
committed
improve bazel setup
1 parent 192ef10 commit 434c10f

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/install_bazel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if ! bazel version; then
44
arch="arm64"
55
fi
66
echo "Downloading $arch Bazel binary from GitHub releases."
7-
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/8.2.0/bazel-8.2.0-linux-$arch"
7+
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/8.2.1/bazel-8.2.1-linux-$arch"
88
chmod +x $HOME/bin/bazel
99
else
1010
# Bazel is installed for the correct architecture

.github/workflows/bazel.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2323

24-
- name: mount bazel cache
25-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
26-
env:
27-
cache-name: bazel-cache
24+
- uses: bazel-contrib/setup-bazel@0.18.0
2825
with:
29-
path: "~/.cache/bazel"
30-
key: ${{ env.cache-name }}-${{ matrix.os }}-${{ github.ref }}
31-
restore-keys: |
32-
${{ env.cache-name }}-${{ matrix.os }}-main
26+
bazelisk-cache: true
27+
disk-cache: ${{ github.workflow }}
28+
respository-cache: true
3329

3430
- name: build
3531
run: |

0 commit comments

Comments
 (0)