File tree Expand file tree Collapse file tree 7 files changed +42
-35
lines changed Expand file tree Collapse file tree 7 files changed +42
-35
lines changed Original file line number Diff line number Diff line change 33
33
ref : ${{ inputs.trigger-sha }}
34
34
- name : Install dependencies
35
35
run : |
36
- sudo ci/install_bazel .sh
36
+ sudo ci/install_bazelisk .sh
37
37
pip3 install Pillow
38
38
pip3 install Wave
39
39
- name : Test
53
53
ref : ${{ inputs.trigger-sha }}
54
54
- name : Install dependencies
55
55
run : |
56
- sudo ci/install_bazel .sh
56
+ sudo ci/install_bazelisk .sh
57
57
pip3 install Pillow
58
58
pip3 install Wave
59
59
- name : Test
73
73
ref : ${{ inputs.trigger-sha }}
74
74
- name : Install dependencies
75
75
run : |
76
- sudo ci/install_bazel .sh
76
+ sudo ci/install_bazelisk .sh
77
77
pip3 install Pillow
78
78
pip3 install Wave
79
79
- name : Test
93
93
ref : ${{ inputs.trigger-sha }}
94
94
- name : Install dependencies
95
95
run : |
96
- sudo ci/install_bazel .sh
96
+ sudo ci/install_bazelisk .sh
97
97
pip3 install Pillow
98
98
pip3 install Wave
99
99
- name : Test
@@ -318,4 +318,4 @@ jobs:
318
318
run : |
319
319
tensorflow/lite/micro/tools/ci_build/test_makefile.sh
320
320
cd ../
321
- tflite-micro/tensorflow/lite/micro/tools/ci_build/test_x86_no_tflite_static_memory.sh tflite-micro/
321
+ tflite-micro/tensorflow/lite/micro/tools/ci_build/test_x86_no_tflite_static_memory.sh tflite-micro/
Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ jobs:
25
25
26
26
steps :
27
27
- uses : actions/setup-python@v4
28
- with :
28
+ with :
29
29
python-version : ' 3.10'
30
30
- uses : actions/checkout@v2
31
31
with :
32
32
token : ${{ secrets.TFLM_BOT_REPO_TOKEN }}
33
33
34
34
- name : Install dependencies for sync
35
35
run : |
36
- sudo ./ci/install_bazel .sh
36
+ sudo ./ci/install_bazelisk .sh
37
37
pip3 install numpy
38
38
39
39
- name : Sync the code
Original file line number Diff line number Diff line change 7
7
# - If ci:ready_to_merge is on the PR and the pull_request_target type is synchronize not triggered
8
8
# by the mergify[bot] user, remove label and fail job.
9
9
# - If ci:ready_to_merge label is on PR and pull_request_target type is labeled, run the test scripts.
10
- #
10
+ #
11
11
# The end result is labeling ci:run or ci:ready_to_merge will run the test scripts,
12
- # If Mergify merges to the PR, the test scripts will run. If anyone else tries to add
12
+ # If Mergify merges to the PR, the test scripts will run. If anyone else tries to add
13
13
# a commit to the PR or merge , the script will fail and ci:ready_to_merge will be
14
14
# removed.
15
15
#
16
- # This script runs the test scripts directly. Scheduled or manual runs use
17
- # run_<scriptname>.yml as the entry point.
16
+ # This script runs the test scripts directly. Scheduled or manual runs use
17
+ # run_<scriptname>.yml as the entry point.
18
18
19
19
name : Tests Entry Point
20
20
on :
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ Below are some tips that might be useful and improve the development experience.
168
168
* Get a copy of [ cpplint] ( https://github.com/google/styleguide/tree/gh-pages/cpplint )
169
169
or install it:
170
170
171
+ * Install Pillow and Wave. For example, [ here] ( ci/Dockerfile.micro ) is what we
172
+ do for the TFLM continuous integration Docker container.
173
+
171
174
```
172
175
pip install cpplint
173
176
```
@@ -204,7 +207,7 @@ Below are some tips that might be useful and improve the development experience.
204
207
1. Run all the tests for x86, and any other platform that you are modifying.
205
208
206
209
```
207
- tensorflow/lite/micro/tools/ci_build/test_x86 .sh
210
+ tensorflow/lite/micro/tools/ci_build/test_x86_default .sh
208
211
```
209
212
210
213
Please check the READMEs in the optimized kernel directories for specific
Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ RUN pip install six
50
50
RUN pip install pyyaml requests psutil robotframework==4.0.1
51
51
52
52
COPY ci/*.sh /install/
53
- RUN /install/install_bazel .sh
53
+ RUN /install/install_bazelisk .sh
54
54
RUN /install/install_buildifier.sh
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
# ==============================================================================
16
16
17
- # Select bazel version.
18
- BAZEL_VERSION=" 5.1.1"
19
-
20
- set +e
21
- local_bazel_ver=$( bazel version 2>&1 | grep -i label | awk ' {print $3}' )
22
-
23
- if [[ " $local_bazel_ver " == " $BAZEL_VERSION " ]]; then
24
- exit 0
25
- fi
26
-
27
17
set -e
18
+ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.16.0/bazelisk-linux-amd64
19
+ mv bazelisk-linux-amd64 bazel
20
+ chmod +x bazel
21
+ sudo mv bazel /usr/local/bin
28
22
29
- # Install bazel.
30
- mkdir -p /bazel
31
- cd /bazel
32
- if [[ ! -f " bazel-$BAZEL_VERSION -installer-linux-x86_64.sh" ]]; then
33
- curl -fSsL -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION /bazel-$BAZEL_VERSION -installer-linux-x86_64.sh
34
- fi
35
- chmod +x /bazel/bazel-* .sh
36
- /bazel/bazel-$BAZEL_VERSION -installer-linux-x86_64.sh
37
- rm -f /bazel/bazel-$BAZEL_VERSION -installer-linux-x86_64.sh
38
-
39
- # Enable bazel auto completion.
40
- echo " source /usr/local/lib/bazel/bin/bazel-complete.bash" >> ~ /.bashrc
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ # ==============================================================================
16
+
17
+ set -e
18
+ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.16.0/bazelisk-linux-amd64
19
+ mv bazelisk-linux-amd64 bazel
20
+ chmod +x bazel
21
+ sudo mv bazel /usr/local/bin
22
+
You can’t perform that action at this time.
0 commit comments