From 53717ba5d1a02704246b6fad8ec54d8f8352f136 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Sat, 24 Jan 2026 11:47:37 -0800 Subject: [PATCH] Bazel windows --- .github/workflows/test_windows.yml | 2 +- tensorflow/lite/micro/compression/BUILD | 4 ++++ tensorflow/lite/micro/compression/view_tests.bzl | 4 ++++ .../lite/micro/examples/micro_speech/BUILD | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index 941c27b011f..31cbfa2e6e5 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -29,7 +29,7 @@ jobs: - name: Test shell: bash run: | - tensorflow/lite/micro/tools/ci_build/test_bazel.sh windows_ci "//tensorflow/lite/micro/... -//tensorflow/lite/micro/compression/... -//python/tflite_micro/signal/... -//signal/..." + tensorflow/lite/micro/tools/ci_build/test_bazel.sh windows_ci "//tensorflow/lite/micro/..." makefile: runs-on: windows-latest diff --git a/tensorflow/lite/micro/compression/BUILD b/tensorflow/lite/micro/compression/BUILD index afb19abc425..abb2069d153 100644 --- a/tensorflow/lite/micro/compression/BUILD +++ b/tensorflow/lite/micro/compression/BUILD @@ -242,6 +242,10 @@ py_binary( srcs = [ "view.py", ], + target_compatible_with = select({ + "@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), deps = [ ":metadata_py", "//tensorflow/lite/python:schema_py", diff --git a/tensorflow/lite/micro/compression/view_tests.bzl b/tensorflow/lite/micro/compression/view_tests.bzl index 22a03516d0a..43011ddf602 100644 --- a/tensorflow/lite/micro/compression/view_tests.bzl +++ b/tensorflow/lite/micro/compression/view_tests.bzl @@ -19,6 +19,10 @@ def generate_view_tests(targets): args = ["$(location {})".format(target)], main = "view_test.py", data = [target], + target_compatible_with = select({ + "@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), deps = [ ":view", requirement("absl_py"), diff --git a/tensorflow/lite/micro/examples/micro_speech/BUILD b/tensorflow/lite/micro/examples/micro_speech/BUILD index 8b68b76fbbf..216382230d4 100644 --- a/tensorflow/lite/micro/examples/micro_speech/BUILD +++ b/tensorflow/lite/micro/examples/micro_speech/BUILD @@ -207,6 +207,10 @@ py_binary( data = [ ":samples_30ms", ], + target_compatible_with = select({ + "@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), deps = [ requirement("absl_py"), requirement("numpy"), @@ -223,6 +227,10 @@ py_binary( data = [ ":models_tflite", ], + target_compatible_with = select({ + "@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), deps = [ ":audio_preprocessor", ], @@ -241,6 +249,10 @@ py_test( "nomsan", # Python doesn't like these symbols "noubsan", ], + target_compatible_with = select({ + "@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), deps = [ ":evaluate", ], @@ -259,6 +271,10 @@ py_test( "nomsan", # Python doesn't like these symbols "noubsan", ], + target_compatible_with = select({ + "@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), deps = [ ":audio_preprocessor", ],