Skip to content

Commit 8eb5e51

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

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-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

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ CMAKE_FLAGS = {
4040
"SNMALLOC_USE_SELF_VENDORED_STL": "OFF",
4141
"SNMALLOC_IPO": "ON",
4242
"USE_SNMALLOC_STATS": "ON",
43+
"SNMALLOC_BUILD_TESTING": "OFF",
4344
} | select({
4445
":release_with_debug": {"CMAKE_BUILD_TYPE": "RelWithDebInfo"},
4546
":release": {"CMAKE_BUILD_TYPE": "Release"},

0 commit comments

Comments
 (0)