Skip to content

Commit 83e846d

Browse files
committed
ci(bazel): cache external repos and upload profiles
Signed-off-by: Simon Scatton <[email protected]>
1 parent ce63b82 commit 83e846d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/branch-checks.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,19 @@ jobs:
157157
bazelisk-cache: true
158158
bazelisk-version: 1.29
159159
disk-cache: ${{ github.workflow }}-${{ matrix.runner }}
160+
external-cache: true
160161
repository-cache: true
161162

162163
- name: Build
163-
run: bazel build //...
164+
run: bazel build --profile="$RUNNER_TEMP/bazel-build.profile.gz" //...
165+
166+
- name: Upload Bazel build profile
167+
if: always()
168+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
169+
with:
170+
name: bazel-build-profile-${{ matrix.runner }}
171+
path: ${{ runner.temp }}/bazel-build.profile.gz
172+
retention-days: 7
164173

165174
- name: Test
166175
run: bazel test --test_output=errors //...

0 commit comments

Comments
 (0)