Skip to content
Closed
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
20 changes: 20 additions & 0 deletions .yamato/build_classlibs_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build Classlibs Windows

agent:
type: Unity::VM
image: platform-foundation/windows-vs2019-il2cpp-bokken:stable
flavor: b1.xlarge

commands:
- perl .yamato/scripts/build_classlibs.pl

triggers:
pull_requests:
- targets:
only:
- "unity-main"

artifacts:
win64:
paths:
- incomingbuilds\**
6 changes: 6 additions & 0 deletions .yamato/build_windows_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ agent:
commands:
- .yamato/scripts/build_win.bat

triggers:
pull_requests:
- targets:
only:
- "unity-main"

artifacts:
win64:
paths:
Expand Down
25 changes: 25 additions & 0 deletions .yamato/scripts/build_classlibs.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use strict;
use warnings;
use File::Copy::Recursive qw(dircopy);
use Cwd qw();

my $path = Cwd::cwd();
print("cwsd: $path\n");

unless (-e "incomingbuilds" or mkdir("incomingbuilds"))
{
die "Unable to create directory incomingbuilds";
}

my @hostPlatforms = ("windows", "OSX", "Linux");

foreach my $hostPlatform(@hostPlatforms)
{
system ("build.cmd", "libs", "-os $hostPlatform", "-c release") eq 0 or die ("Failed to make $hostPlatform host platform class libraries\n");

dircopy ("artifacts/bin/runtime/net7.0-$hostPlatform-Release-x64", "incomingbuilds/coreclrjit-$hostPlatform") or die $!;

system ("taskkill", "/IM", "\"dotnet.exe\"", "/F");

system ("build.cmd", "-clean");
}
5 changes: 4 additions & 1 deletion .yamato/scripts/build_win.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@echo off
build.cmd -subset clr -a x64 -c release
setlocal


powershell -ExecutionPolicy ByPass -NoProfile -Command "& 'eng\build.ps1'" -subset clr -a x64 -c release

if NOT %errorlevel% == 0 (
echo "build failed"
Expand Down