Skip to content
Merged
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
113 changes: 113 additions & 0 deletions .yamato/build-automation/standalone-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
#######################################################
### ###
### Auto-generated by Recipe Engine, DO NOT EDIT. ###
### ###
#######################################################
# Source: RecipeEngine.Modules.BuildAutomation.Recipes.ProjectBuildersRecipe
# Generated by RecipeEngine.Modules.BuildAutomation
build_asteroids_project:
name: Asteroids
agent:
image: package-ci/win10:v4
type: Unity::VM
flavor: b1.xlarge
commands:
- command: pip install --upgrade unity-downloader-cli
- command: python Tools/CI/scripts/BuildAutomation/extend_source_sparse_checkout.py --source-dir %YAMATO_SOURCE_DIR% --local-tested-packages-path .
- command: python Tools/CI/scripts/BuildAutomation/validate_params.py --build-machine-os windows --check-sample-branch https://github.cds.internal.unity3d.com/unity/Asteroids-CMB-NGO-Sample.git --check-unity-version --check-local-tested-packages %YAMATO_SOURCE_DIR%/. --min-supported-editor 6000.3
- command: git clone --single-branch --branch %SAMPLE_BRANCH% https://github.cds.internal.unity3d.com/unity/Asteroids-CMB-NGO-Sample.git C:/ClonedProject
- command: python Tools/CI/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/./Packages/manifest.json --local-tested-packages-path %YAMATO_SOURCE_DIR%/.
- command: python Tools/CI/scripts/BuildAutomation/print_build_summary.py --project-name Asteroids --build-machine-os windows --sample-repo-url https://github.cds.internal.unity3d.com/unity/Asteroids-CMB-NGO-Sample.git --project-path C:/ClonedProject/.
- command: unity-downloader-cli --unity-version %UNITY_VERSION% --path C:/TestingEditor --wait --fast -c editor -c il2cpp -c android -c macos
- command: python Tools/CI/scripts/BuildAutomation/setup_build_scripts.py --project-path C:/ClonedProject/.
- command: python Tools/CI/scripts/BuildAutomation/get_build_method.py --project-path C:/ClonedProject/. --unity-path C:/TestingEditor/Unity.exe
- command: python -c "import os, shutil; dst = './PlayerArtifacts/Asteroids'; src = r'C:/ClonedProject/./build'; os.makedirs(dst, exist_ok=True); shutil.copytree(src, dst, dirs_exist_ok=True)"
artifacts:
logs:
paths:
- artifacts/**/*
players:
paths:
- PlayerArtifacts/**/*
variables:
LOCAL_TESTED_PACKAGES_NAMES: com.unity.netcode.gameobjects
PLATFORM_(WIN64_MAC_ANDROID): win64
SAMPLE_BRANCH: main
SCRIPTING_BACKEND_(IL2CPP_MONO_CORECLR): il2cpp
UNITY_VERSION: 6000.3
source:
files:
sparse_checkout_rules: Tools/CI/scripts/BuildAutomation/project-sparse-checkouts/Asteroids.patterns
checkout_mode: sparse
build_bossroom_project:
name: BossRoom
agent:
image: package-ci/win10:v4
type: Unity::VM
flavor: b1.xlarge
commands:
- command: pip install --upgrade unity-downloader-cli
- command: python Tools/CI/scripts/BuildAutomation/extend_source_sparse_checkout.py --source-dir %YAMATO_SOURCE_DIR% --local-tested-packages-path .
- command: python Tools/CI/scripts/BuildAutomation/validate_params.py --build-machine-os windows --check-sample-branch https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop.git --check-unity-version --check-local-tested-packages %YAMATO_SOURCE_DIR%/. --min-supported-editor 6000.3
- command: git clone --single-branch --branch %SAMPLE_BRANCH% https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop.git C:/ClonedProject
- command: python Tools/CI/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/./Packages/manifest.json --local-tested-packages-path %YAMATO_SOURCE_DIR%/.
- command: python Tools/CI/scripts/BuildAutomation/print_build_summary.py --project-name BossRoom --build-machine-os windows --sample-repo-url https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop.git --project-path C:/ClonedProject/.
- command: unity-downloader-cli --unity-version %UNITY_VERSION% --path C:/TestingEditor --wait --fast -c editor -c il2cpp -c android -c macos
- command: python Tools/CI/scripts/BuildAutomation/setup_build_scripts.py --project-path C:/ClonedProject/.
- command: python Tools/CI/scripts/BuildAutomation/get_build_method.py --project-path C:/ClonedProject/. --unity-path C:/TestingEditor/Unity.exe
- command: python -c "import os, shutil; dst = './PlayerArtifacts/BossRoom'; src = r'C:/ClonedProject/./build'; os.makedirs(dst, exist_ok=True); shutil.copytree(src, dst, dirs_exist_ok=True)"
artifacts:
logs:
paths:
- artifacts/**/*
players:
paths:
- PlayerArtifacts/**/*
variables:
LOCAL_TESTED_PACKAGES_NAMES: com.unity.netcode.gameobjects
PLATFORM_(WIN64_MAC_ANDROID): win64
SAMPLE_BRANCH: ngo-playtest-update
SCRIPTING_BACKEND_(IL2CPP_MONO_CORECLR): il2cpp
UNITY_VERSION: 6000.3
source:
files:
sparse_checkout_rules: Tools/CI/scripts/BuildAutomation/project-sparse-checkouts/BossRoom.patterns
checkout_mode: sparse
build_socialhub_project:
name: SocialHub
agent:
image: package-ci/win10:v4
type: Unity::VM
flavor: b1.xlarge
commands:
- command: pip install --upgrade unity-downloader-cli
- command: python Tools/CI/scripts/BuildAutomation/extend_source_sparse_checkout.py --source-dir %YAMATO_SOURCE_DIR% --local-tested-packages-path .
- command: python Tools/CI/scripts/BuildAutomation/validate_params.py --build-machine-os windows --check-sample-branch https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize.git --check-unity-version --check-local-tested-packages %YAMATO_SOURCE_DIR%/. --min-supported-editor 6000.0
- command: git clone --filter=blob:none --no-checkout --single-branch --branch %SAMPLE_BRANCH% https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize.git C:/ClonedProject
- command: git -C C:/ClonedProject sparse-checkout set Basic/DistributedAuthoritySocialHub
- command: git -C C:/ClonedProject checkout %SAMPLE_BRANCH%
- command: python Tools/CI/scripts/BuildAutomation/resolve_sparse_file_references.py --cloned-root C:/ClonedProject --project-path Basic/DistributedAuthoritySocialHub --branch %SAMPLE_BRANCH%
- command: python Tools/CI/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/Basic/DistributedAuthoritySocialHub/Packages/manifest.json --local-tested-packages-path %YAMATO_SOURCE_DIR%/.
- command: python Tools/CI/scripts/BuildAutomation/print_build_summary.py --project-name DistributedAuthoritySocialHub --build-machine-os windows --sample-repo-url https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize.git --project-path C:/ClonedProject/Basic/DistributedAuthoritySocialHub
- command: unity-downloader-cli --unity-version %UNITY_VERSION% --path C:/TestingEditor --wait --fast -c editor -c il2cpp -c android -c macos
- command: python Tools/CI/scripts/BuildAutomation/setup_build_scripts.py --project-path C:/ClonedProject/Basic/DistributedAuthoritySocialHub
- command: python Tools/CI/scripts/BuildAutomation/get_build_method.py --project-path C:/ClonedProject/Basic/DistributedAuthoritySocialHub --unity-path C:/TestingEditor/Unity.exe
- command: python -c "import os, shutil; dst = './PlayerArtifacts/SocialHub'; src = r'C:/ClonedProject/Basic/DistributedAuthoritySocialHub/build'; os.makedirs(dst, exist_ok=True); shutil.copytree(src, dst, dirs_exist_ok=True)"
artifacts:
logs:
paths:
- artifacts/**/*
players:
paths:
- PlayerArtifacts/**/*
variables:
LOCAL_TESTED_PACKAGES_NAMES: com.unity.netcode.gameobjects
PLATFORM_(WIN64_MAC_ANDROID): win64
SAMPLE_BRANCH: main
SCRIPTING_BACKEND_(IL2CPP_MONO_CORECLR): il2cpp
UNITY_VERSION: 6000.0
source:
files:
sparse_checkout_rules: Tools/CI/scripts/BuildAutomation/project-sparse-checkouts/SocialHub.patterns
checkout_mode: sparse

22 changes: 0 additions & 22 deletions .yamato/project-builders/builder.metafile

This file was deleted.

97 changes: 0 additions & 97 deletions .yamato/project-builders/project-builders.yml

This file was deleted.

7 changes: 6 additions & 1 deletion Tools/CI/NGO.Cookbook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RecipeEngine" Version="9.5.0" />
<Compile Remove="scripts\**\*.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="RecipeEngine" Version="9.6.0" />
<PackageReference Include="RecipeEngine.Api" Version="15.1.1" />
<PackageReference Include="RecipeEngine.Api.Extensions" Version="8.4.0" />
<PackageReference Include="RecipeEngine.Modules.Api" Version="6.4.0" />
<PackageReference Include="RecipeEngine.Modules.Wrench" Version="3.11.5" />
<PackageReference Include="RecipeEngine.Modules.BuildAutomation" Version="1.7.0" />
</ItemGroup>

</Project>
5 changes: 4 additions & 1 deletion Tools/CI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using NGO.Cookbook.Settings;
using RecipeEngine;
using RecipeEngine.Modules.BuildAutomation;
using RecipeEngine.Modules.Wrench.Helpers;


Expand All @@ -8,13 +9,15 @@ public static class Program
{
public static int Main(string[] args)
{
var settings = new NGOSettings();
var settings = new NgoWrenchSettings();
var buildAutomationSettings = new NgoBuildAutomationSettings();

// ReSharper disable once UnusedVariable
var engine = EngineFactory
.Create()
.ScanAll()
.WithWrenchModule(settings.Wrench)
.WithBuildAutomation(buildAutomationSettings.BuildAutomation)
Comment thread
michalChrobot marked this conversation as resolved.
.GenerateAsync().Result;
return engine;
}
Expand Down
Loading
Loading