Move the bazel builds to the TFLM docker image.
Fixes #46415 PiperOrigin-RevId: 351832447 Change-Id: I287697d82f05d0a8375fdb3dd8dd2e86c83f084d
This commit is contained in:
parent
c3f98039e6
commit
4491d6ee3a
@ -52,13 +52,11 @@ readable_run make -s -j8 -f tensorflow/lite/micro/tools/make/Makefile build TAGS
|
||||
readable_run make -f tensorflow/lite/micro/tools/make/Makefile clean
|
||||
readable_run make -s -j8 -f tensorflow/lite/micro/tools/make/Makefile test
|
||||
|
||||
if [[ ${1} != "PRESUBMIT" ]]; then
|
||||
# Most of TFLM external contributors only use make. We are building a subset of
|
||||
# targets with bazel as part of this script to make it easier for external
|
||||
# contributors to fix these errors prior to creating a pull request.
|
||||
#
|
||||
# We only run the bazel command when this script is run locally (i.e. not via
|
||||
# test_all.sh) to avoid duplicate work on the CI system and also avoid
|
||||
# installing bazel on the TFLM Docker image.
|
||||
readable_run bazel build tensorflow/lite/micro:all
|
||||
fi
|
||||
#if [[ ${1} == "PRESUBMIT" ]]; then
|
||||
# # Most of TFLM external contributors only use make and we add the bazel builds
|
||||
# # as part of the CI checks. The errors, if any, will be visible to external
|
||||
# # contributors and can be reproduced by installing bazel on their local
|
||||
# # machines, or using the TFLM Docker container.
|
||||
# CC=clang bazel test tensorflow/lite/micro/... --test_tag_filters=-no_oss --build_tag_filters=-no_oss
|
||||
# CC=clang bazel test tensorflow/lite/micro/... --test_tag_filters=-no_oss --build_tag_filters=-no_oss --copt=-DTF_LITE_STATIC_MEMORY
|
||||
#fi
|
||||
|
@ -10,9 +10,15 @@ RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y zip xxd
|
||||
RUN apt-get install -y zip xxd sudo
|
||||
RUN apt-get install -y clang clang-format
|
||||
|
||||
RUN pip install six
|
||||
# Install Renode test dependencies
|
||||
RUN pip install pyyaml requests psutil robotframework==3.1
|
||||
|
||||
# Install bazel and buildifier so that the bazel presubmit checks can be run
|
||||
# from the micro docker container and are consistent with the rest of the CI.
|
||||
COPY install/*.sh /install/
|
||||
RUN /install/install_bazel.sh
|
||||
RUN /install/install_buildifier.sh
|
||||
|
Loading…
Reference in New Issue
Block a user