Skip to content

Commit 844384e

Browse files
author
Chris Elion
committed
hack get 2018 build running
1 parent f622d70 commit 844384e

File tree

11 files changed

+205
-157
lines changed

11 files changed

+205
-157
lines changed

UnitySDK/Assets/ML-Agents/Editor/Tests/MLAgentsEditModeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public byte[] GetCompressedObservation()
9393
return null;
9494
}
9595

96-
public CompressionType GetCompressionType()
96+
public Sensor.CompressionType GetCompressionType()
9797
{
98-
return CompressionType.None;
98+
return Sensor.CompressionType.None;
9999
}
100100

101101
public string GetName()
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using UnityEditor;
33
using UnityEngine;
4+
using UnityEditor.Build.Reporting;
45

56
namespace MLAgents
67
{
@@ -9,19 +10,21 @@ public class StandaloneBuildTest
910
static void BuildStandalonePlayerOSX()
1011
{
1112
string[] scenes = { "Assets/ML-Agents/Examples/3DBall/Scenes/3DBall.unity" };
12-
var error = BuildPipeline.BuildPlayer(scenes, "testPlayer", BuildTarget.StandaloneOSX, BuildOptions.None);
13-
if (string.IsNullOrEmpty(error))
13+
var report = BuildPipeline.BuildPlayer(scenes, "testPlayer", BuildTarget.StandaloneOSX, BuildOptions.None);
14+
15+
//if (string.IsNullOrEmpty(error))
16+
if(report.summary.result == BuildResult.Succeeded)
1417
{
1518
EditorApplication.Exit(0);
1619
}
1720
else
1821
{
19-
Console.Error.WriteLine(error);
22+
//Console.Error.WriteLine(error);
2023
EditorApplication.Exit(1);
21-
24+
2225
}
2326
Debug.Log(error);
2427
}
25-
28+
2629
}
2730
}

UnitySDK/Assets/ML-Agents/Examples/SharedAssets/Materials/Textures/LogoCube.png.meta

Lines changed: 28 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitySDK/Assets/ML-Agents/Examples/SharedAssets/Materials/Textures/UnityLogo.png.meta

Lines changed: 28 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitySDK/Assets/ML-Agents/Plugins/Barracuda.Core/Barracuda/Plugins/iOS/iOSBLAS.mm.meta

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitySDK/Assets/ML-Agents/Plugins/ProtoBuffer/Grpc.Core.dll.meta

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitySDK/Assets/ML-Agents/Plugins/ProtoBuffer/runtimes/linux/native/libgrpc_csharp_ext.x64.so.meta

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)