Skip to content

Commit 63a77ea

Browse files
committed
more InvariantCulture fixes
1 parent 12e44fd commit 63a77ea

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.yamato/input-system-mobile-performance-build-jobs.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ inputsystem-mobileperformancebuildjobs_-_2022_3_-_ios:
6363
players:
6464
paths:
6565
- build/players/**/*
66-
variables:
67-
UNITY_HANDLEUIINTERRUPTIONS: 1
6866

6967
# InputSystem-MobilePerformanceBuildJobs - 2022.3 - TvOS
7068
inputsystem-mobileperformancebuildjobs_-_2022_3_-_tvos:
@@ -149,8 +147,6 @@ inputsystem-mobileperformancebuildjobs_-_6000_0_-_ios:
149147
players:
150148
paths:
151149
- build/players/**/*
152-
variables:
153-
UNITY_HANDLEUIINTERRUPTIONS: 1
154150

155151
# InputSystem-MobilePerformanceBuildJobs - 6000.0 - TvOS
156152
inputsystem-mobileperformancebuildjobs_-_6000_0_-_tvos:
@@ -235,8 +231,6 @@ inputsystem-mobileperformancebuildjobs_-_6000_2_-_ios:
235231
players:
236232
paths:
237233
- build/players/**/*
238-
variables:
239-
UNITY_HANDLEUIINTERRUPTIONS: 1
240234

241235
# InputSystem-MobilePerformanceBuildJobs - 6000.2 - TvOS
242236
inputsystem-mobileperformancebuildjobs_-_6000_2_-_tvos:

.yamato/input-system-mobile-performance-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ inputsystem-mobileperformancetests_-_2022_3_-_ios:
5959
image: package-ci/macos-13:default
6060
type: Unity::mobile::iPhone
6161
flavor: m1.mac
62-
model: SE-Gen3
62+
model: SE
6363
commands:
6464
- command: UnifiedTestRunner --suite=playmode --category=Performance --reruncount=1 --clean-library --report-performance-data --performance-project-id=InputSystem --player-load-path=build/players --timeout=3600 --artifacts-path=build/test-results --platform=ios
6565
after:
@@ -148,7 +148,7 @@ inputsystem-mobileperformancetests_-_6000_0_-_ios:
148148
image: package-ci/macos-13:default
149149
type: Unity::mobile::iPhone
150150
flavor: m1.mac
151-
model: SE-Gen3
151+
model: SE
152152
commands:
153153
- command: UnifiedTestRunner --suite=playmode --category=Performance --reruncount=1 --clean-library --report-performance-data --performance-project-id=InputSystem --player-load-path=build/players --timeout=3600 --artifacts-path=build/test-results --platform=ios
154154
after:
@@ -237,7 +237,7 @@ inputsystem-mobileperformancetests_-_6000_2_-_ios:
237237
image: package-ci/macos-13:default
238238
type: Unity::mobile::iPhone
239239
flavor: m1.mac
240-
model: SE-Gen3
240+
model: SE
241241
commands:
242242
- command: UnifiedTestRunner --suite=playmode --category=Performance --reruncount=1 --clean-library --report-performance-data --performance-project-id=InputSystem --player-load-path=build/players --timeout=3600 --artifacts-path=build/test-results --platform=ios
243243
after:

Tools/CI/Recipes/MobilePerformanceTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using RecipeEngine.Modules.Wrench.Models;
1111
using RecipeEngine.Platforms;
1212
using RecipeEngine.Unity.Abstractions.Packages;
13+
using System.Globalization;
1314

1415
namespace InputSystem.Cookbook.Recipes;
1516

@@ -49,7 +50,7 @@ protected override IJobBuilder ProduceJob(string jobName, Package package, Platf
4950
new Artifact("logs", "build/logs/**/*"))
5051
.WithInfrastructureInstabilityDetection<WrenchExtensions.CustomScriptInfo>();
5152

52-
if (platform.System == SystemType.IOS && float.Parse(unityVersion) > 6000.2f)
53+
if (platform.System == SystemType.IOS && float.Parse(unityVersion, CultureInfo.InvariantCulture) > 6000.2f)
5354
job.WithEnvironmentVariable("UNITY_HANDLEUIINTERRUPTIONS", 1);
5455

5556
return job;
@@ -83,7 +84,7 @@ protected override IJobBuilder ProduceJob(string jobName, Package package, Platf
8384
}
8485

8586
// For 6000.3+ versions, use iOS15 platform to run tests.
86-
if (platform.System == SystemType.IOS && float.Parse(unityVersion) > 6000.2f)
87+
if (platform.System == SystemType.IOS && float.Parse(unityVersion, CultureInfo.InvariantCulture) > 6000.2f)
8788
platform = Settings.iOS15Platform;
8889

8990
IJobBuilder job = JobBuilder.Create(jobName).WithDescription(jobName).WithPlatform(platform);

0 commit comments

Comments
 (0)