Skip to content

Commit e0efc18

Browse files
committed
CI: add --sandbox_debug --verbose_failures to Bazel builds for debugging
1 parent 10f6b85 commit e0efc18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,10 @@ jobs:
154154
uses: actions/cache@v4
155155
with:
156156
path: "~/.cache/bazel"
157-
key: bazel-${{ matrix.os }}-${{ matrix.build-type }}
158-
- run: bazel build -c opt //:snmalloc
159-
- run: bazel build -c opt //:snmalloc-rs
157+
key: bazel-v2-${{ matrix.os }}-${{ matrix.build-type }}
158+
- run: bazel clean --expunge
159+
- run: bazel build -c opt --sandbox_debug --verbose_failures //:snmalloc 2>&1 || (cat $(bazel info output_base)/external/rules_foreign_cc*/*/build_log 2>/dev/null; false)
160+
- run: bazel build -c opt --sandbox_debug --verbose_failures //:snmalloc-rs
160161
- run: bazel test -c opt --config=asan //fuzzing:snmalloc_fuzzer
161162
if: ${{ matrix.os != 'macos-14' && matrix.os != 'macos-15' }}
162163

0 commit comments

Comments
 (0)