Skip to content

Commit a12c9a0

Browse files
committed
Update
[ghstack-poisoned]
1 parent 0ad383e commit a12c9a0

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/macos-job.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ jobs:
123123
name: ${{ inputs.download-artifact }}
124124
path: ${{ runner.temp }}/artifacts/
125125

126-
- name: Setup upterm session
127-
uses: owenthereal/action-upterm@v1
128-
with:
129-
limit-access-to-actor: true
130-
131126
- name: Run script
132127
shell: bash -l {0}
133128
continue-on-error: ${{ inputs.continue-on-error }}
@@ -152,6 +147,11 @@ jobs:
152147
path: ${{ env.RUNNER_TEST_RESULTS_DIR }}
153148
fail-on-empty: false
154149

150+
- name: Setup upterm session
151+
uses: owenthereal/action-upterm@v1
152+
with:
153+
limit-access-to-actor: true
154+
155155
- name: Check if there are potential artifacts and move them to the correct artifact location
156156
shell: bash -l {0}
157157
working-directory: ${{ inputs.repository }}

.github/workflows/pull.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,20 @@ jobs:
2727
BUILD_TOOL=cmake
2828
BACKEND=coreml
2929
30-
# bash .ci/scripts/setup-conda.sh
30+
cd pytorch/executorch
31+
bash .ci/scripts/setup-conda.sh
32+
33+
xcode-select --install
3134
3235
# Setup MacOS dependencies as there is no Docker support on MacOS atm
33-
# PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
34-
# PYTHON_EXECUTABLE=python ${CONDA_RUN} bash backends/apple/coreml/scripts/install_requirements.sh
36+
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
37+
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash backends/apple/coreml/scripts/install_requirements.sh
3538
echo "Finishing installing coreml."
3639
3740
# Build and test coreml model
38-
# MODELS=(mv3 ic4 resnet50 edsr mobilebert w2l)
39-
# for MODEL_NAME in "${MODELS[@]}"; do
40-
# echo "::group::Exporting coreml model: $MODEL_NAME"
41-
# PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}"
42-
# echo "::endgroup::"
43-
# done
41+
MODELS=(mv3 ic4 resnet50 edsr mobilebert w2l)
42+
for MODEL_NAME in "${MODELS[@]}"; do
43+
echo "::group::Exporting coreml model: $MODEL_NAME"
44+
PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/test_model.sh "${MODEL_NAME}" "${BUILD_TOOL}" "${BACKEND}"
45+
echo "::endgroup::"
46+
done

0 commit comments

Comments
 (0)