Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .yamato/mobile-standalone-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ mobile_standalone_test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
- command: wget http://artifactory-slo.bf.unity3d.com/artifactory/mobile-generic/android/ADBKeys.zip!/adbkey -O %USERPROFILE%/.android/adbkey
- command: gsudo NetSh Advfirewall set allprofiles state off

# Connect to Android device
- command: '"%ANDROID_SDK_ROOT%\platform-tools\adb.exe" connect %BOKKEN_DEVICE_IP%'

# Run tests for Android devices
# Connect to Android device and run tests
- |
set ANDROID_SDK_ROOT=%CD%\.Editor\Data\PlaybackEngines\AndroidPlayer\SDK
"%ANDROID_SDK_ROOT%\platform-tools\adb.exe" connect %BOKKEN_DEVICE_IP% || exit /b 1
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
UnifiedTestRunner --suite=playmode --platform={{ platform.standalone }} --artifacts-path=test-results --player-load-path=build/players --testproject={{ project.path }} --editor-location=.Editor --player-connection-ip=%BOKKEN_HOST_IP% --fail-on-assert --rerun-strategy=Test --retry={{ num_test_retries }} --clean-library-on-rerun --timeout={{ test_timeout }}
{% else %}
Expand Down
5 changes: 3 additions & 2 deletions .yamato/project.metafile
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ test_platforms:
# iOS modern builds are ARM64-only, thus no testing with armv7
- name: ios-arm64
type: Unity::VM::osx
image: package-ci/macos-13:v4
image: package-ci/macos-13-arm64:v4
flavor: m1.mac
larger_flavor: m1.mac
model: M1
standalone: IOS
base: mac
architecture: x64 # package-ci/macos-13:v4 without a model is an Intel VM
architecture: arm64 # trunk no longer ships macOS x64 editors
target_architecture: arm64
mobile_test:
- name: android
Expand Down
8 changes: 8 additions & 0 deletions testproject/Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions testproject/Assets/Editor/IOSBuildPreprocessor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#if UNITY_IOS
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;

// Keeps the Debug IL2CPP GameAssembly within the arm64 linker's +/-128MB branch range.
public class IOSBuildPreprocessor : IPreprocessBuildWithReport
{
public int callbackOrder => 0;

public void OnPreprocessBuild(BuildReport report)
{
PlayerSettings.SetIl2CppCodeGeneration(NamedBuildTarget.iOS, Il2CppCodeGeneration.OptimizeSize);
}
}
#endif
11 changes: 11 additions & 0 deletions testproject/Assets/Editor/IOSBuildPreprocessor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion testproject/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"disableProjectUpdate": false,
"dependencies": {
"com.unity.addressables": "4.0.1",
"com.unity.ai.navigation": "2.0.14",
"com.unity.collab-proxy": "2.13.6",
"com.unity.ide.rider": "3.0.40",
Expand Down
Loading