Skip to content

Commit 588c391

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Bundle each framework separately for distribution. (#2479)
Summary: Pull Request resolved: #2479 bypass-github-export-checks Reviewed By: digantdesai Differential Revision: D54980699 fbshipit-source-id: 214d99b053ef16dd6e2bc3aa6eeaebe6ff403093
1 parent b3456eb commit 588c391

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/apple.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ jobs:
6565
pushd "${WORKSPACE}/pytorch/executorch"
6666
BUILD_TOOL=cmake
6767
VERSION="0.1.0"
68-
OUTPUT="executorch-${VERSION}"
68+
FRAMEWORKS=(
69+
"executorch"
70+
"coreml_backend"
71+
"mps_backend"
72+
"portable_backend"
73+
"xnnpack_backend"
74+
)
6975
7076
.ci/scripts/setup-conda.sh
7177
@@ -83,11 +89,12 @@ jobs:
8389
8490
# Build iOS Frameworks
8591
PYTHON_EXECUTABLE=python ${CONDA_RUN} --no-capture-output \
86-
build/build_apple_frameworks.sh --output="${OUTPUT}" --coreml --mps --portable --xnnpack
92+
build/build_apple_frameworks.sh --coreml --mps --portable --xnnpack
8793
8894
# Bundle iOS Frameworks
89-
cp LICENSE "${OUTPUT}"
90-
zip -r "${RUNNER_TEMP}/artifacts/${OUTPUT}.zip" "${OUTPUT}"
95+
for FRAMEWORK in "${FRAMEWORKS[@]}"; do
96+
zip -r "${RUNNER_TEMP}/artifacts/${FRAMEWORK}-${VERSION}.zip" "cmake-out/${FRAMEWORK}.xcframework" LICENSE
97+
done
9198
9299
popd
93100

0 commit comments

Comments
 (0)