File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -701,7 +701,7 @@ jobs:
701
701
with :
702
702
runner : linux.2xlarge
703
703
docker-image : executorch-ubuntu-22.04-clang12
704
- submodules : ' true '
704
+ submodules : ' recursive '
705
705
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
706
706
timeout : 90
707
707
script : |
@@ -715,6 +715,9 @@ jobs:
715
715
PYTHON_EXECUTABLE=python \
716
716
CMAKE_ARGS="-DEXECUTORCH_BUILD_NXP_NEUTRON=ON" \
717
717
.ci/scripts/setup-linux.sh --build-tool "cmake"
718
+
719
+ PYTHON_EXECUTABLE=python bash examples/nxp/setup.sh
720
+ pip install -r backends/nxp/requirements-tests.txt
718
721
719
722
# Run pytest
720
723
PYTHON_EXECUTABLE=python bash backends/nxp/run_unittests.sh
Original file line number Diff line number Diff line change 6
6
7
7
set -u
8
8
9
+ retry_command () {
10
+ local max_attempts=$2
11
+ for (( i= 0 ; i< $max_attempts ; i++ )) ; do
12
+ $1 && return 0 || echo " Attempt $(( i+ 1 )) failed. Retrying..."
13
+ sleep 2
14
+ done
15
+ echo " All attempts failed."
16
+ return 1
17
+ }
18
+
9
19
# Install neutron-converter
10
- pip install --extra-index-url https://eiq.nxp.com/repository neutron-converter_SDK_25_03
20
+ retry_command " pip install --extra-index-url https://eiq.nxp.com/repository neutron-converter_SDK_25_03" 100 || { echo " Failed " ; exit 1 ; }
You can’t perform that action at this time.
0 commit comments