pascalabcnet/_RebuildReleaseAndRunTestsForGitHubActions.bat
2025-06-20 14:29:40 +03:00

51 lines
1.1 KiB
Batchfile

dotnet build -c Release PascalABCNET.sln
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd ReleaseGenerators
..\bin\pabcnetc RebuildStandartModules.pas /rebuild /noconsole
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd PABCRtl
..\..\bin\pabcnetc PABCRtl.pas /rebuild /noconsole
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
..\sn.exe -Vr PABCRtl.dll
..\sn.exe -R PABCRtl.dll KeyPair.snk
..\sn.exe -Vu PABCRtl.dll
copy PABCRtl.dll ..\..\bin\Lib
cd ..
ExecHide.exe gacutil.exe /u PABCRtl
ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll
..\bin\pabcnetc RebuildStandartModules.pas /rebuild /noconsole
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd ..\bin
REM MPGORunner.exe
TestRunner.exe 1 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 2 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 3 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 4 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 5 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 6 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
pabcnetcclear GitIgnoreTester.pas
GitIgnoreTester.exe NoWait
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd ..
GOTO EXIT
:ERROR
PAUSE
:EXIT