Skip to content

Commit

Permalink
Build debug frameworks. (pytorch#2732)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#2732

.

Reviewed By: cccclai

Differential Revision: D55457129

fbshipit-source-id: 622498d804d2a748712a3225b385b718236c1546
  • Loading branch information
shoumikhin authored and facebook-github-bot committed Mar 28, 2024
1 parent 2449326 commit 3cf9f22
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,24 @@ jobs:
PYTHON_EXECUTABLE=python ${CONDA_RUN} --no-capture-output \
backends/apple/mps/install_requirements.sh
# Build iOS Frameworks
# Build Release iOS Frameworks
PYTHON_EXECUTABLE=python ${CONDA_RUN} --no-capture-output \
build/build_apple_frameworks.sh --coreml --mps --optimized --portable --quantized --xnnpack
build/build_apple_frameworks.sh --Release --coreml --mps --optimized --portable --quantized --xnnpack
# Bundle iOS Frameworks
# Bundle Release iOS Frameworks
for FRAMEWORK in "${FRAMEWORKS[@]}"; do (
cd cmake-out && zip -r "${RUNNER_TEMP}/artifacts/${FRAMEWORK}-${VERSION}.zip" "${FRAMEWORK}.xcframework"
) done
# Build Debug iOS Frameworks
PYTHON_EXECUTABLE=python ${CONDA_RUN} --no-capture-output \
build/build_apple_frameworks.sh --Debug --coreml --mps --optimized --portable --quantized --xnnpack
# Bundle Debug iOS Frameworks
for FRAMEWORK in "${FRAMEWORKS[@]}"; do (
cd cmake-out && zip -r "${RUNNER_TEMP}/artifacts/${FRAMEWORK}_debug-${VERSION}.zip" "${FRAMEWORK}_debug.xcframework"
) done
popd
upload-frameworks-ios:
Expand Down

0 comments on commit 3cf9f22

Please sign in to comment.