@@ -245,7 +245,7 @@ jobs:
245
245
toolchain_cmake=$(realpath ${toolchain_cmake})
246
246
247
247
# Build and test size test
248
- bash test/build_size_test.sh "-DCMAKE_TOOLCHAIN_FILE=${toolchain_cmake} -DEXECUTORCH_BUILD_ARM_BAREMETAL=ON"
248
+ bash test/build_size_test.sh "-DCMAKE_TOOLCHAIN_FILE=${toolchain_cmake} -DEXECUTORCH_BUILD_ARM_BAREMETAL=ON -DEXECUTORCH_BUILD_NXP_NEUTRON=ON "
249
249
elf="cmake-out/test/size_test"
250
250
251
251
# Dump basic info
@@ -271,6 +271,45 @@ jobs:
271
271
exit 1
272
272
fi
273
273
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
+ source .ci/scripts/utils.sh
292
+ install_executorch "--use-pt-pinned-commit"
293
+ .ci/scripts/setup-arm-baremetal-tools.sh
294
+ source examples/arm/ethos-u-scratch/setup_path.sh
295
+
296
+ # User baremetal toolchain
297
+ arm-none-eabi-c++ --version
298
+ toolchain_cmake=examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake
299
+ toolchain_cmake=$(realpath ${toolchain_cmake})
300
+
301
+ # Build
302
+ bash test/build_size_test.sh "-DCMAKE_TOOLCHAIN_FILE=${toolchain_cmake} -DEXECUTORCH_BUILD_NXP_NEUTRON=ON"
303
+
304
+ # Build check for the neutron backend library
305
+ lib_neutron="cmake-out/backends/nxp/libexecutorch_delegate_neutron.a"
306
+ if [ -f $lib_neutron ]; then
307
+ echo "Neutron backend library built."
308
+ else
309
+ echo "Neutron backend library not found!"
310
+ exit 1
311
+ fi
312
+
274
313
test-coreml-delegate :
275
314
name : test-coreml-delegate
276
315
uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
0 commit comments