Skip to content

Commit a168672

Browse files
committed
[nxp] trunk.yaml: download submodules recursively
1 parent 77e342d commit a168672

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/trunk.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ jobs:
701701
with:
702702
runner: linux.2xlarge
703703
docker-image: executorch-ubuntu-22.04-clang12
704-
submodules: 'true'
704+
submodules: 'recursive'
705705
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
706706
timeout: 90
707707
script: |
@@ -715,6 +715,9 @@ jobs:
715715
PYTHON_EXECUTABLE=python \
716716
CMAKE_ARGS="-DEXECUTORCH_BUILD_NXP_NEUTRON=ON" \
717717
.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
718721
719722
# Run pytest
720723
PYTHON_EXECUTABLE=python bash backends/nxp/run_unittests.sh

examples/nxp/setup.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,15 @@
66

77
set -u
88

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+
919
# 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; }

0 commit comments

Comments
 (0)