forked from facebookarchive/WebDriverAgent
-
Notifications
You must be signed in to change notification settings - Fork 450
ci: sim remove unnecessary files #1037
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9fddbb2
ci: remove unnecessary files from the prebuilt package
KazuCocoa c4a4f98
adjust the path
KazuCocoa 8a826e5
debug
KazuCocoa 699f126
debug
KazuCocoa e6997bc
use cd instead
KazuCocoa 7c02629
modify
KazuCocoa ebc5655
fix $WD
KazuCocoa 28af904
use exclude instead
KazuCocoa b648635
tweakd
KazuCocoa 7a8b389
modify
KazuCocoa aed4d43
modify more
KazuCocoa eb92292
modify more
KazuCocoa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,32 +1,24 @@ | ||
| #!/bin/bash | ||
|
|
||
| # To run build script for CI | ||
|
|
||
| xcodebuild clean build-for-testing \ | ||
| -project WebDriverAgent.xcodeproj \ | ||
| -derivedDataPath $DERIVED_DATA_PATH \ | ||
| -scheme $SCHEME \ | ||
| -destination "$DESTINATION" \ | ||
| CODE_SIGNING_ALLOWED=NO ARCHS=arm64 | ||
|
|
||
| # Only .app is needed. | ||
|
|
||
| pushd $WD | ||
|
|
||
| # to remove test packages to refer to the device local instead of embedded ones | ||
| # XCTAutomationSupport.framework, XCTest.framewor, XCTestCore.framework, | ||
| # XCUIAutomation.framework, XCUnit.framework | ||
| rm -rf $SCHEME-Runner.app/Frameworks/XC*.framework | ||
|
|
||
| # Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA | ||
| rm -rf $SCHEME-Runner.app/Frameworks/Testing.framework | ||
|
|
||
| # This library is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed. | ||
| # Xcode 16 generates a 2.6 MB file size. Xcode 15 was a 1 MB file size. | ||
| rm -rf $SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib | ||
|
|
||
|
|
||
|
|
||
| zip -r $ZIP_PKG_NAME $SCHEME-Runner.app | ||
| # The reason why here excludes several frameworks are: | ||
| # - to remove test packages to refer to the device local instead of embedded ones | ||
| # XCTAutomationSupport.framework, XCTest.framewor, XCTestCore.framework, | ||
| # XCUIAutomation.framework, XCUnit.framework. | ||
| # This can be excluded only for real devices. | ||
| # - Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA. | ||
| # - libXCTestSwiftSupport is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed. | ||
| zip -r $ZIP_PKG_NAME $SCHEME-Runner.app \ | ||
| -x "$SCHEME-Runner.app/Frameworks/XC*.framework*" \ | ||
| "$SCHEME-Runner.app/Frameworks/Testing.framework*" \ | ||
| "$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib" | ||
| popd | ||
| mv $WD/$ZIP_PKG_NAME ./ |
This file contains hidden or 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,19 +1,19 @@ | ||
| #!/bin/bash | ||
|
|
||
| # To run build script for CI | ||
|
|
||
| xcodebuild clean build-for-testing \ | ||
| -project WebDriverAgent.xcodeproj \ | ||
| -derivedDataPath wda_build \ | ||
| -derivedDataPath $DERIVED_DATA_PATH \ | ||
| -scheme $SCHEME \ | ||
| -destination "$DESTINATION" \ | ||
| CODE_SIGNING_ALLOWED=NO ARCHS=$ARCHS | ||
|
|
||
| # simulator needs to build entire build files | ||
| pushd $WD | ||
|
|
||
| pushd wda_build | ||
| # to remove unnecessary space consuming files | ||
| rm -rf Build/Intermediates.noindex | ||
| zip -r $ZIP_PKG_NAME Build | ||
| # The reason why here excludes several frameworks are: | ||
| # - Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA. | ||
| # - libXCTestSwiftSupport is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed. | ||
| zip -r $ZIP_PKG_NAME $SCHEME-Runner.app \ | ||
| -x "$SCHEME-Runner.app/Frameworks/Testing.framework*" \ | ||
| "$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib" | ||
| popd | ||
| mv wda_build/$ZIP_PKG_NAME ./ | ||
| mv $WD/$ZIP_PKG_NAME ./ | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.