@@ -271,6 +271,36 @@ jobs:
271271 exit 1
272272 fi
273273
274+ nxp-build-test :
275+ name : nxp-build-test
276+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
277+ permissions :
278+ id-token : write
279+ contents : read
280+ with :
281+ runner : linux.2xlarge
282+ docker-image : executorch-ubuntu-22.04-arm-sdk
283+ submodules : ' recursive'
284+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
285+ timeout : 90
286+ script : |
287+ # The generic Linux job chooses to use base env, not the one setup by the image
288+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
289+ conda activate "${CONDA_ENV}"
290+
291+ # Build
292+ cmake -DEXECUTORCH_BUILD_NXP_NEUTRON=ON -Bcmake-out .
293+ cmake --build cmake-out --target executorch_delegate_neutron --config Release
294+
295+ # Build check for the neutron backend library
296+ lib_neutron="cmake-out/backends/nxp/libexecutorch_delegate_neutron.a"
297+ if [ -f $lib_neutron ]; then
298+ echo "Neutron backend library built."
299+ else
300+ echo "Neutron backend library not found!"
301+ exit 1
302+ fi
303+
274304 test-coreml-delegate :
275305 name : test-coreml-delegate
276306 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
@@ -470,7 +500,7 @@ jobs:
470500 docker-image : executorch-ubuntu-22.04-qnn-sdk
471501 submodules : ' recursive'
472502 ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
473- timeout : 90
503+ timeout : 900
474504 script : |
475505 # The generic Linux job chooses to use base env, not the one setup by the image
476506 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
@@ -489,14 +519,14 @@ jobs:
489519 strategy :
490520 matrix :
491521 dtype : [fp32]
492- model : [cvt, dit, efficientnet, focalnet, mobilevit_v1, mobilevit_v2, pvt, swin, albert, bert, distilbert, roberta ] # eurobert requires transfomer >= 4.48.0, skip for now
522+ model : [albert, bert, distilbert] # eurobert requires transfomer >= 4.48.0, skip for now
493523 fail-fast : false
494524 with :
495525 runner : linux.2xlarge
496526 docker-image : executorch-ubuntu-22.04-qnn-sdk
497527 submodules : ' recursive'
498528 ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
499- timeout : 90
529+ timeout : 900
500530 script : |
501531 # The generic Linux job chooses to use base env, not the one setup by the image
502532 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
0 commit comments