-
Notifications
You must be signed in to change notification settings - Fork 58
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
iOS XCFramework distribution – Part 4: Upload to S3 #5769
Conversation
Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job! |
d634f16
to
62b0773
Compare
a3baa3f
to
017f2ef
Compare
7be5928
to
ae0e71e
Compare
f0f4395
to
1d76e80
Compare
auto_prefix: false, | ||
skip_if_exists: false | ||
) | ||
end |
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.
We could use Fastlane to generate the xcframework
s at this point. But I consider that an incremental refinement rather than a precondition for the S3 upload.
3037a9b
to
874412a
Compare
f2ca7eb
to
8c5e024
Compare
.buildkite/pipeline.yml
Outdated
- automattic/a8c-ci-toolkit#2.15.1 | ||
- automattic/a8c-ci-toolkit#2.16.0 | ||
- peakon/git-shallow-clone#v0.0.1: | ||
depth: 1 | ||
agents: | ||
queue: mac | ||
env: | ||
IMAGE_ID: xcode-14.2 | ||
IMAGE_ID: xcode-14.3 |
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.
These updates were not required by the changes in the PR. I did them just to stay up to date.
echo "--- :arrow_down: Download iOS JS bundle" | ||
buildkite-agent artifact download bundle/ios/App.js . | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
cd ./ios-xcframework |
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.
I could have left the cd
at the start of the script and downloaded the artifact in ..
, but it seemed convoluted.
// Linking a static library that was built with -gmodules, but the module cache was not found. | ||
// Redistributable static libraries should never be built with module debugging enabled. | ||
// The debug experience will be degraded due to incomplete debug information. | ||
CLANG_ENABLE_MODULE_DEBUGGING = 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.
This change was part of the previous PR. For it to be here, I must have messed up a git rebase
resulting in that commit not landing in trunk
.
The React Native iOS runtime needs this file, albeit converted as a `jsbundle`. The Jetpack and WordPress iOS setup currently use `App.js` and converts it to a `jsbundle` file in a build phase run script. For the moment we'll stick with that approach, looking at possible refinements later on.
We no longer need those binaries as we took a different approach to adding RN in other apps. See https://github.com/woocommerce/WooCommerce-Shared
No reason other than to avoid the update prompt when running locally
Co-authored-by: Jeremy Massel <[email protected]>
Co-authored-by: Jeremy Massel <[email protected]>
Co-authored-by: Jeremy Massel <[email protected]>
This will allow us to change a single line to add namespace on S3
This will make it easier to browse the bucket. See #5769 (comment)
Turns out reading files from within an ERB require some gotchas which make the code less clear. See #5769 (comment)
7d64263
to
e63075c
Compare
Yeap, it's a different bucket. |
@jkmassel Dismissing to unblock merge. Changes have been addressed. If there's anything I missed, I'll followup.
Builds on top of #5738 , #5739 , and #5740 to upload a ZIP with the Gutenberg XCFrameworks on S3.
To test: Verify CI runs successfully, then download the tar.gz from
https://d2twmm2nzpx3bg.cloudfront.net/Gutenberg-<commit sha1>.tar.gz
I had to introduce a number of other changes to actually get the XCFrameoworks to work in WordPress, so this PR ended up a bit bloated. Most noteworthy:
bundle/ios/App.js
to the XCFramework resourcesYou can verify the integration in this test PR in WordPress iOS. Admittedly, in that build there are UI tests issues. They could be related to the XCFramework packaging, but not with the distribution via S3 itself.
PR submission checklist: