Skip to content

[nxp] trunk.yaml: download submodules recursively #11091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ jobs:
with:
runner: linux.2xlarge
docker-image: executorch-ubuntu-22.04-clang12
submodules: 'true'
submodules: 'recursive'
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 90
script: |
Expand All @@ -715,6 +715,9 @@ jobs:
PYTHON_EXECUTABLE=python \
CMAKE_ARGS="-DEXECUTORCH_BUILD_NXP_NEUTRON=ON" \
.ci/scripts/setup-linux.sh --build-tool "cmake"

PYTHON_EXECUTABLE=python bash examples/nxp/setup.sh
pip install -r backends/nxp/requirements-tests.txt

# Run pytest
PYTHON_EXECUTABLE=python bash backends/nxp/run_unittests.sh
12 changes: 11 additions & 1 deletion examples/nxp/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,15 @@

set -u

retry_command() {
local max_attempts=$2
for ((i=0; i<$max_attempts; i++)); do
$1 && return 0 || echo "Attempt $((i+1)) failed. Retrying..."
sleep 1
done
echo "All attempts failed."
return 1
}

# Install neutron-converter
pip install --extra-index-url https://eiq.nxp.com/repository neutron-converter_SDK_25_03
retry_command "pip install --extra-index-url https://eiq.nxp.com/repository neutron-converter_SDK_25_03" 10 || { echo "Failed"; exit 1; }
Loading