Skip to content

Commit b159261

Browse files
authored
Bazel windows (#3336)
1 parent 55e8363 commit b159261

4 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/test_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Test
3030
shell: bash
3131
run: |
32-
tensorflow/lite/micro/tools/ci_build/test_bazel.sh windows_ci "//tensorflow/lite/micro/... -//tensorflow/lite/micro/compression/... -//python/tflite_micro/signal/... -//signal/..."
32+
tensorflow/lite/micro/tools/ci_build/test_bazel.sh windows_ci "//tensorflow/lite/micro/..."
3333
3434
makefile:
3535
runs-on: windows-latest

tensorflow/lite/micro/compression/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ py_binary(
242242
srcs = [
243243
"view.py",
244244
],
245+
target_compatible_with = select({
246+
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
247+
"//conditions:default": [],
248+
}),
245249
deps = [
246250
":metadata_py",
247251
"//tensorflow/lite/python:schema_py",

tensorflow/lite/micro/compression/view_tests.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def generate_view_tests(targets):
1919
args = ["$(location {})".format(target)],
2020
main = "view_test.py",
2121
data = [target],
22+
target_compatible_with = select({
23+
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
24+
"//conditions:default": [],
25+
}),
2226
deps = [
2327
":view",
2428
requirement("absl_py"),

tensorflow/lite/micro/examples/micro_speech/BUILD

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ py_binary(
207207
data = [
208208
":samples_30ms",
209209
],
210+
target_compatible_with = select({
211+
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
212+
"//conditions:default": [],
213+
}),
210214
deps = [
211215
requirement("absl_py"),
212216
requirement("numpy"),
@@ -223,6 +227,10 @@ py_binary(
223227
data = [
224228
":models_tflite",
225229
],
230+
target_compatible_with = select({
231+
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
232+
"//conditions:default": [],
233+
}),
226234
deps = [
227235
":audio_preprocessor",
228236
],
@@ -241,6 +249,10 @@ py_test(
241249
"nomsan", # Python doesn't like these symbols
242250
"noubsan",
243251
],
252+
target_compatible_with = select({
253+
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
254+
"//conditions:default": [],
255+
}),
244256
deps = [
245257
":evaluate",
246258
],
@@ -259,6 +271,10 @@ py_test(
259271
"nomsan", # Python doesn't like these symbols
260272
"noubsan",
261273
],
274+
target_compatible_with = select({
275+
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
276+
"//conditions:default": [],
277+
}),
262278
deps = [
263279
":audio_preprocessor",
264280
],

0 commit comments

Comments
 (0)