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

test to see if yamato scripts run on PR. Ignore #2

Closed
wants to merge 2 commits into from
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