-
Notifications
You must be signed in to change notification settings - Fork 279
Update the iOS scenarios build flow to match android #4834
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
LoopedBard3
merged 7 commits into
dotnet:main
from
LoopedBard3:UpdateiOSMobileToMatchAndroid
Apr 17, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
812e633
Update the iOS scenarios to use the same flow as android, bringing th…
LoopedBard3 2314fac
Update iOS builds to use the latest macos and xcode version.
LoopedBard3 3bc225c
Update the net_ios dll used for getting the ios version for mobile te…
LoopedBard3 b91e7c2
Test building SOD and Startup for x64.
LoopedBard3 67232b6
Standardize the iOS Scenario names to match android name convention.
LoopedBard3 e07f332
Add CodegeType to mobile iOS runs and setup RuntimeType and CodegenTy…
LoopedBard3 50bf9dd
Don't include the TTFD in the Blazor test name, especially as we are …
LoopedBard3 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
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
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
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 |
---|---|---|
|
@@ -3,17 +3,18 @@ | |
''' | ||
import shutil | ||
import sys | ||
from performance.logger import setup_loggers | ||
from performance.logger import setup_loggers, getLogger | ||
from shared import const | ||
from shared.mauisharedpython import remove_aab_files, install_versioned_maui | ||
from shared.mauisharedpython import remove_aab_files, install_latest_maui | ||
from shared.precommands import PreCommands | ||
from shared.versionmanager import versions_write_json, get_version_from_dll_powershell_ios | ||
from shared.versionmanager import versions_write_json, get_sdk_versions | ||
from test import EXENAME | ||
|
||
setup_loggers(True) | ||
|
||
precommands = PreCommands() | ||
install_versioned_maui(precommands) | ||
install_latest_maui(precommands) | ||
precommands.print_dotnet_info() | ||
|
||
# Setup the .NET iOS folder | ||
precommands.new(template='ios', | ||
|
@@ -24,7 +25,6 @@ | |
no_restore=False) | ||
|
||
# Build the APK | ||
shutil.copy('./MauiNuGet.config', './app/Nuget.config') | ||
precommands.execute(['/p:_RequireCodeSigning=false', '/p:ApplicationId=net.dot.xamarintesting']) | ||
|
||
# Remove the aab files as we don't need them, this saves space | ||
|
@@ -33,8 +33,7 @@ | |
output_dir = precommands.output | ||
remove_aab_files(output_dir) | ||
|
||
# Copy the XamarinVersion to a file so we have it on the machine | ||
net_ios_version = get_version_from_dll_powershell_ios(rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/linked/Microsoft.iOS.dll") | ||
version_dict = { "netIosVersion": net_ios_version } | ||
# Extract the versions of used SDKs from the linked folder DLLs | ||
version_dict = get_sdk_versions(rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/linked", False) | ||
versions_write_json(version_dict, rf"{output_dir}/versions.json") | ||
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/linked/Microsoft.iOS.dll") | ||
print(f"Versions: {version_dict} from location " + rf"./{const.APPDIR}/obj/Release/{precommands.framework}/ios-arm64/linked") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably out of scope for this PR but would it be possible and would it make sense to unify all the pre.py scripts to avoid code/configs duplications to avoid possible misconfigurations/bugs in the future? |
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
Oops, something went wrong.
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.
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.
would it make sense to get channels from a (default) value of a new template parameter? So it's kept uniform across all template
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.
That probably makes sense for most cases, although mobile is currently a special case as we only run main and not each main, 9.0, and 8.0.