-
Notifications
You must be signed in to change notification settings - Fork 36
/
pack.bat
53 lines (38 loc) · 1.29 KB
/
pack.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
setlocal enabledelayedexpansion
set TOOLCHAINPATH=%~dp0toolchain\gcc4
set CMAKE_ROOT=%TOOLCHAINPATH%\share\cmake-3.17
if not exist %TOOLCHAINPATH% (
echo Native toolchain not found.
echo Execute "init-tools.bat" if build runtime at first time.
exit /b 1
)
set BuildIdentifier=%1
if "%BuildIdentifier%" == "" (
set BuildIdentifier=manually
)
rem if not exist ArtifactCollector\ArtifactCollector.exe (
rem echo ArtifactCollector not found.
rem echo Build il2c.sln first.
rem exit /b 1
rem )
rem =========================================
call build-runtime.bat Debug
call build-runtime.bat Release
rem =========================================
echo.
echo ///////////////////////////////////////////////
echo // Build entire IL2C.pack.sln
echo.
dotnet build --configuration Release -p:Platform="Any CPU" -p:BuildIdentifier="%BuildIdentifier%" il2c.pack.sln
rem =========================================
echo.
echo ///////////////////////////////////////////////
echo // Collects artifacts.
echo.
ArtifactCollector\ArtifactCollector.exe . .\artifacts "%BuildIdentifier%" IL2C.Interop IL2C.Core IL2C.Tasks IL2C.Runtime
rem =========================================
rem .nuget\nuget.exe push -Source "IL2C" -ApiKey AzureDevOps .\artifacts\*.nupkg
echo.
echo Done.
echo.