1+ using  InputSystem . Cookbook . Recipes . Extensions ; 
12using  RecipeEngine . Api . Artifacts ; 
23using  RecipeEngine . Api . Dependencies ; 
34using  RecipeEngine . Api . Extensions ; 
@@ -24,34 +25,23 @@ protected override IJobBuilder ProduceJob(string jobName, Package package, Platf
2425            . WithDescription ( jobName ) 
2526            . WithPlatform ( platform ) 
2627            . WithCommands ( Utilities . GetEditorDownloadCommand ( unityBranch ,  platform ) ) ; 
27-          
28+ 
2829        var  utrCommand  =  UtrCommand . Run ( platform . System ,  b =>  b 
29-             . WithTestProject ( $ "{ ProjectPath } ") 
30-             . WithEditor ( ".Editor" ) 
31-             . WithSuite ( UtrTestSuiteType . Playmode ) 
32-             . WithCategory ( "Performance" ) 
33-             . WithExtraArgs ( "--clean-library" ) 
34-             . WithRerun ( 1 ,  true ) 
35-             . WithBuildOnly ( ) 
36-             . WithPerformanceDataReporting ( true ) 
37-             . WithPerformanceProject ( "InputSystem" ) 
38-             . WithPlayerSavePath ( "build/players" ) 
39-             . WithArtifacts ( "build/logs" ) ) ; 
30+                 . WithTestProject ( $ "{ ProjectPath } ") 
31+                 . WithEditor ( ".Editor" ) 
32+                 . WithSuite ( UtrTestSuiteType . Playmode ) 
33+                 . WithCategory ( "Performance" ) 
34+                 . WithExtraArgs ( "--clean-library" ) 
35+                 . WithRerun ( 1 ,  true ) 
36+                 . WithBuildOnly ( ) 
37+                 . WithPerformanceDataReporting ( true ) 
38+                 . WithPerformanceProject ( "InputSystem" ) 
39+                 . WithPlayerSavePath ( "build/players" ) 
40+                 . WithArtifacts ( "build/logs" ) ) 
41+             . WithPlatform ( platform ) ; 
4042
41-         if  ( platform . System  ==  SystemType . Android ) 
42-         { 
43-             utrCommand  =  utrCommand . Concat ( "--platform=android" ) ; 
44-             if ( jobName . Contains ( "il2cpp" ) ) 
45-                 utrCommand  =  utrCommand . Concat ( "--scripting-backend=il2cpp" ) ; 
46-         } 
47-         else  if  ( platform . System  ==  SystemType . TvOS ) 
48-         { 
49-             utrCommand  =  utrCommand . Concat ( "--platform=tvOS" ) ; 
50-         } 
51-         else  if  ( platform . System  ==  SystemType . IOS ) 
52-         { 
53-             utrCommand  =  utrCommand . Concat ( "--platform=ios" ) ; 
54-         } 
43+         if  ( platform . System  ==  SystemType . Android  &&  jobName . Contains ( "il2cpp" ) ) 
44+             utrCommand  =  utrCommand . Concat ( "--scripting-backend=il2cpp" ) ; 
5545
5646        job . WithCommands ( utrCommand ) 
5747            . WithArtifact ( new  Artifact ( "players" ,  "build/players/**/*" ) , 
@@ -101,27 +91,15 @@ protected override IJobBuilder ProduceJob(string jobName, Package package, Platf
10191            job . WithCommands ( Settings . AndroidExtraCommands ) . WithAfterCommands ( Settings . AndroidExtraAfterCommands ) ; 
10292
10393        var  utrCommand  =  UtrCommand . Run ( platform . System ,  b =>  b 
104-             . WithSuite ( UtrTestSuiteType . Playmode ) 
105-             . WithCategory ( "Performance" ) 
106-             . WithRerun ( 1 ) 
107-             . WithPerformanceDataReporting ( true ) 
108-             . WithPerformanceProject ( "InputSystem" ) 
109-             . WithPlayerLoadPath ( "build/players" ) 
110-             . WithArtifacts ( "build/test-results" ) ) ; 
111-         
112-         if  ( platform . System  ==  SystemType . Android ) 
113-         { 
114-             utrCommand  =  utrCommand . Concat ( "--platform=android" ) ; 
115-         } 
116-         else  if  ( platform . System  ==  SystemType . TvOS ) 
117-         { 
118-             utrCommand  =  utrCommand . Concat ( "--platform=tvOS" ) ; 
119-         } 
120-         else  if  ( platform . System  ==  SystemType . IOS ) 
121-         { 
122-             utrCommand  =  utrCommand . Concat ( "--platform=ios" ) ; 
123-         } 
124-         
94+                 . WithSuite ( UtrTestSuiteType . Playmode ) 
95+                 . WithCategory ( "Performance" ) 
96+                 . WithRerun ( 1 ) 
97+                 . WithPerformanceDataReporting ( true ) 
98+                 . WithPerformanceProject ( "InputSystem" ) 
99+                 . WithPlayerLoadPath ( "build/players" ) 
100+                 . WithArtifacts ( "build/test-results" ) ) 
101+             . WithPlatform ( platform ) ; 
102+ 
125103        job . WithCommands ( utrCommand ) 
126104            . WithDependencies ( buildJob ) 
127105            . WithArtifact ( new  Artifact ( "logs" ,  "build/test-results/**/*" ) ) 
0 commit comments