Skip to content

Commit c3c6bdd

Browse files
authored
Buildscript support for coreclr runtime and classlibrary building (#3)
* Calling build.cmd would exit early it appears so needed to call build.ps1 directly instead to keep the artifact copying. * Build script updates * Trigger current yamato targets on PRs so at least something runs :-) * Add classlib building. Currently leverages perl but not enthusiastic about it. * Switching from perl to batch script to build the classlibs * PR feedback: Use a function for echoing system calls
1 parent 5538a50 commit c3c6bdd

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.yamato/build_classlibs_win.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build Classlibs Windows
2+
3+
agent:
4+
type: Unity::VM
5+
image: platform-foundation/windows-vs2019-il2cpp-bokken:stable
6+
flavor: b1.xlarge
7+
8+
commands:
9+
- .yamato/scripts/build_classlibs.bat
10+
11+
triggers:
12+
pull_requests:
13+
- targets:
14+
only:
15+
- "unity-main"
16+
17+
artifacts:
18+
win64:
19+
paths:
20+
- incomingbuilds\**

.yamato/build_windows_x64.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ agent:
88
commands:
99
- .yamato/scripts/build_win.bat
1010

11+
triggers:
12+
pull_requests:
13+
- targets:
14+
only:
15+
- "unity-main"
16+
1117
artifacts:
1218
win64:
1319
paths:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@echo OFF
2+
3+
if not exist "incomingbuilds" mkdir "incomingbuilds"
4+
5+
for %%x IN ("windows", "OSX", "Linux") do (
6+
CALL :EchoAndExecute build.cmd libs -os %%x -c release
7+
if NOT %errorlevel% == 0 (
8+
echo "build failed"
9+
EXIT /B %errorlevel%
10+
)
11+
if not exist "incomingbuilds/coreclrjit-%%x" mkdir "incomingbuilds/coreclrjit-%%x"
12+
13+
CALL :EchoAndExecute xcopy /s /e /h /y "artifacts/bin/runtime/net7.0-%%x-Release-x64" "incomingbuilds/coreclrjit-%%x"
14+
CALL :EchoAndExecute taskkill /IM "dotnet.exe" /F
15+
CALL :EchoAndExecute build.cmd -clean
16+
)
17+
EXIT /B %ERRORLEVEL%
18+
19+
:EchoAndExecute
20+
ECHO %*
21+
CALL %*
22+
GOTO :EOF

0 commit comments

Comments
 (0)