Skip to content

Commit ce1d281

Browse files
Fix bazel ci (#1504)
This is a temporary fix until I can do https://bazel.build/external/migration
1 parent 3d6d8ee commit ce1d281

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,13 @@ jobs:
240240
- run:
241241
name: install bazel
242242
command: |
243-
apt-get install -q -y bazel
243+
apt-get install -q -y bazel-7.4.1
244244
- run: test/test_bazel.sh
245245

246246
test-bazel-mac-arm64:
247247
executor: mac_arm64
248+
environment:
249+
USE_BAZEL_VERSION: "7.4.1"
248250
steps:
249251
- checkout
250252
- run:

test/test_bazel.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@ FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
1717
grep ${VER} bazel/revisions.bzl || (echo ${FAILMSG} && false)
1818
grep ${HASH} bazel/revisions.bzl || (echo ${FAILMSG} && false)
1919

20+
BAZEL_CMD=$(which bazel || which bazel-7.4.1)
21+
2022
cd bazel
21-
bazel build //hello-world:hello-world-wasm
22-
bazel build //hello-world:hello-world-wasm-simd
23+
$BAZEL_CMD build //hello-world:hello-world-wasm
24+
$BAZEL_CMD build //hello-world:hello-world-wasm-simd
2325

2426
cd test_external
25-
bazel build //:hello-world-wasm
26-
bazel build //long_command_line:long_command_line_wasm
27-
bazel build //:hello-embind-wasm --compilation_mode dbg # debug
27+
$BAZEL_CMD build //:hello-world-wasm
28+
$BAZEL_CMD build //long_command_line:long_command_line_wasm
29+
$BAZEL_CMD build //:hello-embind-wasm --compilation_mode dbg # debug
2830

2931
# Test use of the closure compiler
30-
bazel build //:hello-embind-wasm --compilation_mode opt # release
32+
$BAZEL_CMD build //:hello-embind-wasm --compilation_mode opt # release
3133
# This function should not be minified if the externs file is loaded correctly.
3234
grep "customJSFunctionToTestClosure" bazel-bin/hello-embind-wasm/hello-embind.js
3335

3436
cd ../test_secondary_lto_cache
35-
bazel build //:hello-world-wasm
36-
37+
$BAZEL_CMD build //:hello-world-wasm

0 commit comments

Comments
 (0)