Skip to content
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

added yml #6

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2d85a08
added yml
gomboskriszta15 Jan 16, 2023
2abc5b8
Merge branch 'main' into 5-add-pipeline
gomboskriszta15 Jan 20, 2023
6921a18
build roll a ball in pipeline
gomboskriszta15 Jan 20, 2023
6ccb8f5
actions
gomboskriszta15 Jan 20, 2023
febd4a1
created workflows folder
gomboskriszta15 Jan 20, 2023
f617e59
Merge remote-tracking branch 'origin/main' into 5-add-pipeline
gomboskriszta15 Jan 20, 2023
2d67f20
moved yml
gomboskriszta15 Jan 20, 2023
bcb2e75
deleted unnecessary file
gomboskriszta15 Jan 20, 2023
158e5c2
updated yml
gomboskriszta15 Jan 26, 2023
f694d4f
changed method
gomboskriszta15 Jan 26, 2023
39e6a21
run ls
gomboskriszta15 Jan 26, 2023
1855713
fixed path
gomboskriszta15 Jan 26, 2023
1e25188
changed path
gomboskriszta15 Jan 26, 2023
3fffc5f
worth a try
gomboskriszta15 Jan 27, 2023
f9bd57e
changed environment variables
gomboskriszta15 Jan 27, 2023
f919a7b
Update workflows.yml
gomboskriszta15 Jan 31, 2023
dcf0af4
changed path
gomboskriszta15 Jan 31, 2023
54766b1
ls again
gomboskriszta15 Jan 31, 2023
c8be70a
ls once more
gomboskriszta15 Jan 31, 2023
6a56d19
use newer version of upload artifact
gomboskriszta15 Jan 31, 2023
526e470
use development
gomboskriszta15 Jan 31, 2023
ed766d3
build fixed
gomboskriszta15 Jan 31, 2023
68a7dd7
rename
gomboskriszta15 Jan 31, 2023
bcd9bcc
run on windows 2019
gomboskriszta15 Feb 1, 2023
26534da
removed logs
gomboskriszta15 Feb 1, 2023
6527092
use development
gomboskriszta15 Feb 2, 2023
f346834
Modified shaders to normal shaders
gomboskriszta15 Feb 6, 2023
4861795
Merge remote-tracking branch 'origin/main' into 5-add-pipeline
gomboskriszta15 Feb 6, 2023
f1d13fd
change runner version to windows 2019
gomboskriszta15 Feb 6, 2023
9bff602
removed renderer pipeline universal
gomboskriszta15 Feb 6, 2023
e3faf32
specify unity version
gomboskriszta15 Feb 6, 2023
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
1 change: 0 additions & 1 deletion .github/workflows/main.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Roll a Ball with NIS
on:
push:
workflow_dispatch: {}

jobs:
build-windows:
runs-on: windows-2019
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Init submodule
run: git submodule update --init --force

- uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- uses: game-ci/unity-builder@v2
env:
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: RollABall/
buildMethod: BuildRollABall.WindowsBuildForRollABallFromCommandLine
targetPlatform: StandaloneWindows
customImage: 'unityci/editor:2021.3.16f1-base-0'

- uses: actions/upload-artifact@v3.1.0
with:
name: RollABall
path: RollABall/RollABallWindowsTest
8 changes: 8 additions & 0 deletions RollABall/Assets/Editor/build.meta

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

109 changes: 109 additions & 0 deletions RollABall/Assets/Editor/build/BuildRollABall.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
using System;
using Altom.AltTester;
using Altom.AltTesterEditor;
using UnityEditor;
using UnityEngine;

class BuildRollABall
{
public static void WindowsBuildForRollABallFromCommandLine(){
WindowsBuildFromCommandLine(true,13000);
}

static void WindowsBuildFromCommandLine(bool withAltunity, int proxyPort = 13000)
{
SetPlayerSettings(false);

Debug.Log("Starting Windows build..." + PlayerSettings.productName + " : " + PlayerSettings.bundleVersion);
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions();
buildPlayerOptions.scenes = new string[]
{
"Assets/Scenes/MiniGame.unity"
};
if (withAltunity)
{
buildPlayerOptions.locationPathName = "RollABallWindowsTest/RollABall.exe";

}
else
{
buildPlayerOptions.locationPathName = "RollABallWindows/RollABall.exe";

}
buildPlayerOptions.target = BuildTarget.StandaloneWindows;
buildPlayerOptions.targetGroup = BuildTargetGroup.Standalone;
if (withAltunity)
{
buildPlayerOptions.options = BuildOptions.Development| BuildOptions.IncludeTestAssemblies;
}
BuildGame(buildPlayerOptions, withAltunity, proxyPort: proxyPort);

}

private static void SetPlayerSettings(bool customBuild)
{
PlayerSettings.companyName = "Altom";
PlayerSettings.productName = "RollABall";
PlayerSettings.bundleVersion = "1.0";
PlayerSettings.resizableWindow = true;
PlayerSettings.defaultScreenHeight = 900;
PlayerSettings.defaultScreenWidth = 1200;
PlayerSettings.fullScreenMode = FullScreenMode.Windowed;
PlayerSettings.SetApiCompatibilityLevel(BuildTargetGroup.Standalone, ApiCompatibilityLevel.NET_4_6);
PlayerSettings.runInBackground = true;
}

static void BuildGame(BuildPlayerOptions buildPlayerOptions, bool withAltUnity, string proxyHost = null, int proxyPort = 13000)
{
try
{
if (withAltUnity)
{
AddAltUnity(buildPlayerOptions.targetGroup, buildPlayerOptions.scenes[0], proxyHost, proxyPort);
}
var results = BuildPipeline.BuildPlayer(buildPlayerOptions);

if (withAltUnity)
{
RemoveAltUnity(buildPlayerOptions.targetGroup);
}

if (results.summary.totalErrors == 0 || results.summary.result == UnityEditor.Build.Reporting.BuildResult.Succeeded)
{
Debug.Log("Build succeeded!");

}
else
{
Debug.LogError("Build failed! " + results.steps + "\n Result: " + results.summary.result + "\n Stripping info: " + results.strippingInfo);
// EditorApplication.Exit(1);
}

Debug.Log("Finished. " + PlayerSettings.productName + " : " + PlayerSettings.bundleVersion);
// EditorApplication.Exit(0);
}
catch (Exception exception)
{

Debug.LogException(exception);
// EditorApplication.Exit(1);
}
}

static void AddAltUnity(BuildTargetGroup buildTargetGroup, string firstSceneName, string proxyHost = null, int proxyPort = 13000)
{
AltBuilder.PreviousScenePath = firstSceneName;
var instrumentationSettings = new AltInstrumentationSettings();
instrumentationSettings.ProxyPort = proxyPort;
if (!string.IsNullOrEmpty(proxyHost)) instrumentationSettings.ProxyHost = proxyHost;
AltBuilder.AddAltTesterInScriptingDefineSymbolsGroup(buildTargetGroup);
AltBuilder.InsertAltInScene(firstSceneName, instrumentationSettings);
Debug.Log("Instrumenting with proxyHost: " + proxyHost + ", proxyPort: " + proxyPort);

}

static void RemoveAltUnity(BuildTargetGroup buildTargetGroup)
{
AltBuilder.RemoveAltTesterFromScriptingDefineSymbols(buildTargetGroup);
}
}
11 changes: 11 additions & 0 deletions RollABall/Assets/Editor/build/BuildRollABall.cs.meta

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

126 changes: 115 additions & 11 deletions RollABall/Assets/Scenes/MiniGame.unity
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.4465785, g: 0.49641275, b: 0.5748151, a: 1}
m_IndirectSpecularColor: {r: 0.44657892, g: 0.49641353, b: 0.5748163, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
Expand Down Expand Up @@ -476,7 +476,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &84084726
GameObject:
Expand Down Expand Up @@ -710,6 +710,111 @@ MeshFilter:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 121038709}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1001 &134691994
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 229047808239693275, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 229047808239693275, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 229047808239693275, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 229047808239693275, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 229047808239693275, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 229047808239693275, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2486512690666058911, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2486512690666058911, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2486512690666058911, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2486512690666058911, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2486512690666058911, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2486512690666058911, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5275682393695888382, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7155360372610505065, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
propertyPath: m_Name
value: AltTesterPrefab
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3cfd2a2470624448e83ecabb3739898f, type: 3}
--- !u!1 &264509552
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -751,7 +856,7 @@ Transform:
- {fileID: 1952296052}
- {fileID: 1460371237}
m_Father: {fileID: 0}
m_RootOrder: 5
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &291529916
GameObject:
Expand Down Expand Up @@ -957,7 +1062,7 @@ RectTransform:
- {fileID: 1390010546}
- {fileID: 84084727}
m_Father: {fileID: 0}
m_RootOrder: 8
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -1062,7 +1167,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &323447574
Rigidbody:
Expand Down Expand Up @@ -1420,7 +1525,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 340232489}
m_HandleRect: {fileID: 340232488}
m_Direction: 2
m_Value: 1
m_Value: 0.99999976
m_Size: 0.53169024
m_NumberOfSteps: 0
m_OnValueChanged:
Expand Down Expand Up @@ -1718,7 +1823,7 @@ RectTransform:
- {fileID: 291529917}
- {fileID: 1221873839}
m_Father: {fileID: 0}
m_RootOrder: 6
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -2868,7 +2973,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0}
--- !u!114 &1201484075
MonoBehaviour:
Expand Down Expand Up @@ -3953,7 +4058,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_MoveRepeatDelay: 0.5
m_MoveRepeatRate: 0.1
m_XRTrackingOrigin: {fileID: 0}
Expand Down Expand Up @@ -3999,7 +4103,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1721342812
GameObject:
Expand Down Expand Up @@ -4898,7 +5002,7 @@ Transform:
- {fileID: 1272449907}
- {fileID: 1025413896}
m_Father: {fileID: 0}
m_RootOrder: 4
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &6002605684233859181
PrefabInstance:
Expand Down
7 changes: 3 additions & 4 deletions RollABall/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"dependencies": {
"com.unity.collab-proxy": "1.17.2",
"com.unity.collab-proxy": "1.17.7",
"com.unity.editorcoroutines": "1.0.0",
"com.unity.ide.rider": "3.0.15",
"com.unity.ide.rider": "3.0.16",
"com.unity.ide.visualstudio": "2.0.16",
"com.unity.ide.vscode": "1.2.5",
"com.unity.inputsystem": "1.4.1",
"com.unity.inputsystem": "1.4.4",
"com.unity.nuget.newtonsoft-json": "3.0.2",
"com.unity.render-pipelines.universal": "12.1.7",
"com.unity.test-framework": "1.1.31",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.6.4",
Expand Down
Loading