@@ -339,14 +339,13 @@ ARG JOBS=16
339
339
#RUN bazel build --jobs $JOBS ${CAPI_FLAGS} //src:ovms_shared
340
340
341
341
RUN mkdir -p /tmp/bazel-output && \
342
- bash -c '\
343
- set -euo pipefail && \
344
- bazel --output_base=/tmp/bazel-output \
345
- build --jobs=$JOBS ${CAPI_FLAGS} //src:ovms_shared && \
346
- LIB_PATH=$(find /tmp/bazel-output -name libovms_shared.so | head -n1) && \
347
- echo "Found built file: $LIB_PATH" && \
348
- mkdir -p /ovms_release/lib && \
349
- cp -v "$LIB_PATH" /ovms_release/lib/'
342
+ bazel --output_base=/tmp/bazel-output \
343
+ build --jobs=$JOBS ${CAPI_FLAGS} //src:ovms_shared && \
344
+ find /tmp/bazel-output -name libovms_shared.so && \
345
+ LIB_PATH=$(find /tmp/bazel-output -name libovms_shared.so | head -n1) && \
346
+ echo "Found built file: $LIB_PATH" && \
347
+ mkdir -p /ovms_release/lib && \
348
+ cp -v "$LIB_PATH" /ovms_release/lib/
350
349
351
350
352
351
# C api app with bazel
@@ -365,14 +364,12 @@ RUN bazel build --jobs=$JOBS ${CAPI_FLAGS} //src:capi_benchmark && \
365
364
366
365
367
366
RUN mkdir -p /tmp/bazel-output && \
368
- bash -c '\
369
- set -euo pipefail && \
370
- bazel --output_base=/tmp/bazel-output \
371
- build --jobs=$JOBS ${CAPI_FLAGS} //src:capi_benchmark && \
372
- CAPI_BIN=$(find /tmp/bazel-output -type f -name capi_benchmark | head -n1) && \
373
- echo "Found built capi_benchmark: $CAPI_BIN" && \
374
- chmod +x "$CAPI_BIN" && \
375
- "$CAPI_BIN" --niter 2 --nstreams 1 --servable_name "dummy"'
367
+ bazel --output_base=/tmp/bazel-output \
368
+ build --jobs=$JOBS ${CAPI_FLAGS} //src:capi_benchmark && \
369
+ CAPI_BIN=$(find /tmp/bazel-output -type f -name capi_benchmark | head -n1) && \
370
+ echo "Found built capi_benchmark: $CAPI_BIN" && \
371
+ chmod +x "$CAPI_BIN" && \
372
+ "$CAPI_BIN" --niter 2 --nstreams 1 --servable_name "dummy"
376
373
377
374
378
375
# C-api C/C++ app with gcc
0 commit comments