mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This PR is a follow up to https://github.com/pytorch/pytorch/pull/85597 which removes codesigning from our github action workflows. This is a synonymous change to our circleci workflows. Since we only run TestApp on simulator we don't need to have this codesigning logic. (And more pressingly, these dev cert is expiring at the end of the month and we don't have a replacement) Pull Request resolved: https://github.com/pytorch/pytorch/pull/85630 Approved by: https://github.com/atalman, https://github.com/malfet
20 lines
520 B
Bash
20 lines
520 B
Bash
#!/bin/bash
|
|
set -ex -o pipefail
|
|
|
|
if ! [ "$IOS_PLATFORM" == "SIMULATOR" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
echo ""
|
|
echo "DIR: $(pwd)"
|
|
PROJ_ROOT=/Users/distiller/project
|
|
cd ${PROJ_ROOT}/ios/TestApp
|
|
# install fastlane
|
|
sudo gem install bundler && bundle install
|
|
# run the ruby build script
|
|
if ! [ -x "$(command -v xcodebuild)" ]; then
|
|
echo 'Error: xcodebuild is not installed.'
|
|
exit 1
|
|
fi
|
|
ruby ${PROJ_ROOT}/scripts/xcode_build.rb -i ${PROJ_ROOT}/build_ios/install -x ${PROJ_ROOT}/ios/TestApp/TestApp.xcodeproj -p ${IOS_PLATFORM}
|