31
31
32
32
source .ci/scripts/utils.sh
33
33
# This is a simple Python script but as it tries to import executorch.examples.models,
34
- # it requires a whole bunch of Executorch dependencies on the Docker image
34
+ # it requires a whole bunch of ExecuTorch dependencies on the Docker image
35
35
install_pip_dependencies
36
36
install_executorch
37
37
62
62
DEMO_BACKEND_DELEGATION=${{ matrix.demo_backend_delegation }}
63
63
64
64
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
65
- # Build and test Executorch
65
+ # Build and test ExecuTorch
66
66
PYTHON_EXECUTABLE=python bash .ci/scripts/test.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${XNNPACK_QUANTIZATION}" "${XNNPACK_DELEGATION}" "${DEMO_BACKEND_DELEGATION}"
67
67
68
- test-models-macos :
69
- name : test-models-macos
70
- uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
71
- needs : gather-models
72
- strategy :
73
- matrix : ${{ fromJSON(needs.gather-models.outputs.models) }}
74
- fail-fast : false
75
- with :
76
- runner : macos-m1-12
77
- submodules : ' true'
78
- ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
79
- timeout : 90
80
- script : |
81
- WORKSPACE=$(pwd)
82
- pushd "${WORKSPACE}/pytorch/executorch"
83
-
84
- MODEL_NAME=${{ matrix.model }}
85
- BUILD_TOOL=${{ matrix.build-tool }}
86
- XNNPACK_QUANTIZATION=${{ matrix.xnnpack_quantization }}
87
- XNNPACK_DELEGATION=${{ matrix.xnnpack_delegation }}
88
- DEMO_BACKEND_DELEGATION=${{ matrix.demo_backend_delegation }}
89
-
90
- # Setup MacOS dependencies as there is no Docker support on MacOS atm
91
- PYTHON_EXECUTABLE=python bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
92
- # Build and test Executorch
93
- PYTHON_EXECUTABLE=python bash .ci/scripts/test.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${XNNPACK_QUANTIZATION}" "${XNNPACK_DELEGATION}" "${DEMO_BACKEND_DELEGATION}"
94
- popd
95
-
96
68
test-custom-ops-linux :
97
69
name : test-custom-ops-linux
98
70
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
@@ -117,31 +89,6 @@ jobs:
117
89
# Test custom ops
118
90
PYTHON_EXECUTABLE=python bash examples/custom_ops/test_custom_ops.sh "${BUILD_TOOL}"
119
91
120
- test-custom-ops-macos :
121
- name : test-custom-ops-macos
122
- uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
123
- strategy :
124
- matrix :
125
- include :
126
- - build-tool : buck2
127
- - build-tool : cmake
128
- fail-fast : false
129
- with :
130
- runner : macos-m1-12
131
- submodules : ' true'
132
- ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
133
- script : |
134
- WORKSPACE=$(pwd)
135
- pushd "${WORKSPACE}/pytorch/executorch"
136
-
137
- BUILD_TOOL=${{ matrix.build-tool }}
138
- # Setup MacOS dependencies as there is no Docker support on MacOS atm
139
- PYTHON_EXECUTABLE=python bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
140
-
141
- # Build and test custom ops
142
- PYTHON_EXECUTABLE=python bash examples/custom_ops/test_custom_ops.sh "${BUILD_TOOL}"
143
- popd
144
-
145
92
test-selective-build-linux :
146
93
name : test-selective-build-linux
147
94
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
@@ -166,31 +113,6 @@ jobs:
166
113
# Test selective build
167
114
PYTHON_EXECUTABLE=python bash examples/selective_build/test_selective_build.sh "${BUILD_TOOL}"
168
115
169
- test-selective-build-macos :
170
- name : test-selective-build-macos
171
- uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
172
- strategy :
173
- matrix :
174
- include :
175
- - build-tool : buck2
176
- - build-tool : cmake
177
- fail-fast : false
178
- with :
179
- runner : macos-m1-12
180
- submodules : ' true'
181
- ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
182
- script : |
183
- WORKSPACE=$(pwd)
184
- pushd "${WORKSPACE}/pytorch/executorch"
185
-
186
- BUILD_TOOL=${{ matrix.build-tool }}
187
- # Setup MacOS dependencies as there is no Docker support on MacOS atm
188
- PYTHON_EXECUTABLE=python bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
189
-
190
- # Build and test selective build
191
- PYTHON_EXECUTABLE=python bash examples/selective_build/test_selective_build.sh "${BUILD_TOOL}"
192
- popd
193
-
194
116
unittest :
195
117
uses : ./.github/workflows/_unittest.yml
196
118
with :
0 commit comments