46
46
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
47
47
timeout : ${{ matrix.timeout }}
48
48
script : |
49
- WORKSPACE=$(pwd)
50
- pushd "${WORKSPACE}/pytorch/executorch"
51
-
52
49
MODEL_NAME=${{ matrix.model }}
53
50
BUILD_TOOL=${{ matrix.build-tool }}
54
51
BACKEND=${{ matrix.backend }}
59
56
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
60
57
# Build and test xecutorch
61
58
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}" "${DEMO_BACKEND_DELEGATION}"
62
- popd
63
59
64
60
test-custom-ops-macos :
65
61
name : test-custom-ops-macos
@@ -75,17 +71,13 @@ jobs:
75
71
submodules : ' true'
76
72
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
77
73
script : |
78
- WORKSPACE=$(pwd)
79
- pushd "${WORKSPACE}/pytorch/executorch"
80
-
81
74
BUILD_TOOL=${{ matrix.build-tool }}
82
75
83
76
bash .ci/scripts/setup-conda.sh
84
77
# Setup MacOS dependencies as there is no Docker support on MacOS atm
85
78
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
86
79
# Build and test custom ops
87
80
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash examples/portable/custom_ops/test_custom_ops.sh "${BUILD_TOOL}"
88
- popd
89
81
90
82
test-selective-build-macos :
91
83
name : test-selective-build-macos
@@ -101,17 +93,13 @@ jobs:
101
93
submodules : ' true'
102
94
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
103
95
script : |
104
- WORKSPACE=$(pwd)
105
- pushd "${WORKSPACE}/pytorch/executorch"
106
-
107
96
BUILD_TOOL=${{ matrix.build-tool }}
108
97
109
98
bash .ci/scripts/setup-conda.sh
110
99
# Setup MacOS dependencies as there is no Docker support on MacOS atm
111
100
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
112
101
# Build and test selective build
113
102
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash examples/selective_build/test_selective_build.sh "${BUILD_TOOL}"
114
- popd
115
103
116
104
test-demo-backend-delegation :
117
105
name : test-demo-backend-delegation
@@ -208,17 +196,13 @@ jobs:
208
196
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
209
197
timeout : 90
210
198
script : |
211
- WORKSPACE=$(pwd)
212
- pushd "${WORKSPACE}/pytorch/executorch"
213
-
214
199
BUILD_TOOL=cmake
215
200
216
201
bash .ci/scripts/setup-conda.sh
217
202
# Setup MacOS dependencies as there is no Docker support on MacOS atm
218
203
GITHUB_RUNNER=1 PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
219
204
# Build and test coreml delegate
220
205
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash backends/apple/coreml/scripts/build_all.sh
221
- popd
222
206
223
207
test-pybind-build-macos :
224
208
name : test-pybind-build-macos
@@ -235,8 +219,6 @@ jobs:
235
219
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
236
220
timeout : 180
237
221
script : |
238
- WORKSPACE=$(pwd)
239
- pushd "${WORKSPACE}/pytorch/executorch"
240
222
bash .ci/scripts/setup-conda.sh
241
223
242
224
# build module for executorch.extension.pybindings.portable_lib
@@ -245,7 +227,6 @@ jobs:
245
227
246
228
# see if we can import the module successfully
247
229
${CONDA_RUN} python -c "from executorch.extension.pybindings import portable_lib; print('success!')"
248
- popd
249
230
250
231
test-llama-runner-macos :
251
232
name : test-llama-runner-mac
@@ -263,8 +244,6 @@ jobs:
263
244
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
264
245
timeout : 900
265
246
script : |
266
- WORKSPACE=$(pwd)
267
- pushd "${WORKSPACE}/pytorch/executorch"
268
247
bash .ci/scripts/setup-conda.sh
269
248
270
249
DTYPE=${{ matrix.dtype }}
@@ -278,4 +257,3 @@ jobs:
278
257
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash examples/models/llama2/install_requirements.sh
279
258
# Test llama2
280
259
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_llama.sh stories110M.pt "${BUILD_TOOL}" "${DTYPE}" "${MODE}"
281
- popd
0 commit comments