Skip to content

Commit 50741e3

Browse files
committed
Let's be picky on Windows Bazel
1 parent 1e8997a commit 50741e3

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/test_hosted.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@ jobs:
6868
- name: Install dependencies
6969
run: |
7070
pip install Pillow numpy
71+
- name: Select C++ Tests
72+
shell: bash
73+
run: |
74+
bazel query --keep_going 'kind(cc_test, //...) except rdeps(//..., kind(py_binary, //...))' > cc_targets.txt
7175
- name: Test
7276
shell: bash
7377
run: |
74-
bazel --output_user_root="C:/tmp" --windows_enable_symlinks test --config=windows_ci "//tensorflow/lite/micro/..."
78+
bazel --output_user_root="C:/tmp" --windows_enable_symlinks test --config=windows_ci --target_pattern_file=cc_targets.txt
7579
7680
makefile-windows:
7781
runs-on: windows-x86-n2-16

.github/workflows/test_windows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,29 @@ jobs:
1616
- uses: actions/checkout@v6
1717
with:
1818
ref: ${{ inputs.trigger-sha }}
19+
- name: Enable symlinks
20+
run: git config core.symlinks true
1921
- uses: bazel-contrib/setup-bazel@0.18.0
2022
with:
2123
bazelisk-cache: true
2224
disk-cache: true
2325
repository-cache: true
26+
bazelrc: |
27+
startup --windows_enable_symlinks
2428
- uses: actions/setup-python@v6
2529
with:
2630
python-version: '3.10'
2731
- name: Install dependencies
2832
run: |
2933
pip install Pillow numpy
34+
- name: Select C++ Tests
35+
shell: bash
36+
run: |
37+
bazel query --keep_going 'kind(cc_test, //...) except rdeps(//..., kind(py_binary, //...))' > cc_targets.txt
3038
- name: Test
3139
shell: bash
3240
run: |
33-
tensorflow/lite/micro/tools/ci_build/test_bazel.sh windows_ci "//tensorflow/lite/micro/..."
41+
bazel --output_user_root="C:/tmp" --windows_enable_symlinks test --config=windows_ci --target_pattern_file=cc_targets.txt
3442
3543
makefile:
3644
runs-on: windows-latest

0 commit comments

Comments
 (0)