forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove codesigning from ios circleci workflows (pytorch#85630)
This PR is a follow up to pytorch#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: pytorch#85630 Approved by: https://github.com/atalman, https://github.com/malfet
- Loading branch information
1 parent
a9183c0
commit 0686800
Showing
6 changed files
with
10 additions
and
93 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
#!/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 | ||
# install certificates | ||
echo "${IOS_CERT_KEY_2022}" >> cert.txt | ||
base64 --decode cert.txt -o Certificates.p12 | ||
rm cert.txt | ||
bundle exec fastlane install_root_cert | ||
bundle exec fastlane install_dev_cert | ||
# install the provisioning profile | ||
PROFILE=PyTorch_CI_2022.mobileprovision | ||
PROVISIONING_PROFILES=~/Library/MobileDevice/Provisioning\ Profiles | ||
mkdir -pv "${PROVISIONING_PROFILES}" | ||
cd "${PROVISIONING_PROFILES}" | ||
echo "${IOS_SIGN_KEY_2022}" >> cert.txt | ||
base64 --decode cert.txt -o ${PROFILE} | ||
rm cert.txt | ||
# run the ruby build script | ||
if ! [ -x "$(command -v xcodebuild)" ]; then | ||
echo 'Error: xcodebuild is not installed.' | ||
exit 1 | ||
fi | ||
PROFILE=PyTorch_CI_2022 | ||
ruby ${PROJ_ROOT}/scripts/xcode_build.rb -i ${PROJ_ROOT}/build_ios/install -x ${PROJ_ROOT}/ios/TestApp/TestApp.xcodeproj -p ${IOS_PLATFORM} -c ${PROFILE} -t ${IOS_DEV_TEAM_ID} | ||
ruby ${PROJ_ROOT}/scripts/xcode_build.rb -i ${PROJ_ROOT}/build_ios/install -x ${PROJ_ROOT}/ios/TestApp/TestApp.xcodeproj -p ${IOS_PLATFORM} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters