Skip to content

Commit 0dbaafe

Browse files
committed
Adding new test for zephyr integrations
1 parent 76b08f3 commit 0dbaafe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/trunk.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,30 @@ jobs:
5555
# Build and test executorch
5656
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}"
5757
58+
test-models-arm-zephyr:
59+
name: test-models-arm-zephyr
60+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
61+
strategy:
62+
matrix:
63+
model: [add]
64+
fail-fast: false
65+
with:
66+
runner: linux.2xlarge
67+
submodules: 'recursive'
68+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
69+
timeout: 120
70+
script: |
71+
MODEL_NAME=${{ matrix.model }}
72+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
73+
conda activate "${CONDA_ENV}"
74+
75+
source .ci/scripts/utils.sh
76+
install_executorch "--use-pt-pinned-commit"
77+
.ci/scripts/setup-arm-baremetal-tools.sh --target-toolchain zephyr
78+
source examples/arm/ethos-u-scratch/setup_path.sh
79+
pwd
80+
ls
81+
5882
test-models-linux-aarch64:
5983
name: test-models-linux-aarch64
6084
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main

0 commit comments

Comments
 (0)