-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build and publish iOS framework in GitHub release files #3173
Conversation
386bb80
to
47685f0
Compare
|
||
package_libdeepspeech_as_zip "libdeepspeech.zip" | ||
|
||
case $arch in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do we really need the case
here? I feel like we could just have
${TAR} -cf - \
-C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/swift/DerivedData/Build/Products/Release-*/ deepspeech_ios.framework \
| ${XZ} > "${TASKCLUSTER_ARTIFACTS}/deepspeech_ios.framework.${arch}.tar.xz"
arch=$1 | ||
cp ${DS_TFDIR}/bazel-bin/native_client/libdeepspeech.so ${DS_DSDIR}/native_client/swift/libdeepspeech.so | ||
cd ${DS_DSDIR}/native_client/swift | ||
case $arch in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think we could just have the case set a few variables like the SDK variant and have one xcodebuild
call after:
case $arch in
"--x86_64")
iosSdk="iphonesimulator"
;;
"--arm64")
iosSdk="iphoneos"
;;
esac
xcodebuild -workspace deepspeech_ios.xcworkspace -scheme deepspeech_ios_test -configuration Release -arch ${arch} -sdk ${iosSdk} -derivedDataPath DerivedData CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, two nits but it's not a big deal we can take care of that later
taskcluster/ios-package.sh
Outdated
;; | ||
esac | ||
|
||
${TAR} -cf - \ | ||
-C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/swift/DerivedData/Build/Products/Release-iphonesimulator/ deepspeech_ios.framework \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't you going to have an issue here with Release-iphonesimulator
? ARM64 builds seems to end up in Release-iphoneos
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh. nice catch
fa1d2f4
to
844b375
Compare
No description provided.