File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -240,11 +240,13 @@ jobs:
240
240
- run :
241
241
name : install bazel
242
242
command : |
243
- apt-get install -q -y bazel
243
+ apt-get install -q -y bazel-7.4.1
244
244
- run : test/test_bazel.sh
245
245
246
246
test-bazel-mac-arm64 :
247
247
executor : mac_arm64
248
+ environment :
249
+ USE_BAZEL_VERSION : " 7.4.1"
248
250
steps :
249
251
- checkout
250
252
- run :
Original file line number Diff line number Diff line change @@ -17,20 +17,21 @@ FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
17
17
grep ${VER} bazel/revisions.bzl || (echo ${FAILMSG} && false)
18
18
grep ${HASH} bazel/revisions.bzl || (echo ${FAILMSG} && false)
19
19
20
+ BAZEL_CMD=$( which bazel || which bazel-7.4.1)
21
+
20
22
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
23
25
24
26
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
28
30
29
31
# 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
31
33
# This function should not be minified if the externs file is loaded correctly.
32
34
grep " customJSFunctionToTestClosure" bazel-bin/hello-embind-wasm/hello-embind.js
33
35
34
36
cd ../test_secondary_lto_cache
35
- bazel build //:hello-world-wasm
36
-
37
+ $BAZEL_CMD build //:hello-world-wasm
You can’t perform that action at this time.
0 commit comments