Skip to content

Commit

Permalink
Add missing _GenerateAllSetupsForGitHubActions.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
spectatorBH committed Jan 17, 2024
1 parent cddbf29 commit 82ea860
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies into Virtual Environment...
run: _RegisterHelixNUnit.bat

- name: Build project in release-mode, compile Pas-units, create install packages...
- name: Build C# project in release-mode, compile Pas-units, create install packages...
run: _GenerateAllSetups.bat
#run: _RebuildReleaseAndRunTestsForGitHubActions.bat
timeout-minutes: 40
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-run-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build project in Release-mode / compile Pas-units / run tests
- name: Build C# project in release-mode / compile Pas-units / run tests
run: ./_RebuildReleaseAndRunTests.sh
timeout-minutes: 40
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defaults:
jobs:
build:

name: Prepare and build on Windows Server 2019 VM
name: Prepare and build on Windows Server VM (2019)
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install dependencies into Virtual Environment
run: _RegisterHelixNUnit.bat

- name: Build C# project in Release-mode / compile Pas-units / run tests
- name: Build C# project in release-mode / compile Pas-units / run tests
run: _GenerateAllSetupsForGitHubActions.bat
timeout-minutes: 40
env:
Expand Down
73 changes: 73 additions & 0 deletions _GenerateAllSetupsForGitHubActions.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
cd ReleaseGenerators\Samples\
del Pas /s /q
del BF /s /q
del PL0 /s /q
GetSamples.exe "..\..\InstallerSamples" Pas\
GetSamples.exe _svn\BF BF
GetSamples.exe _svn\PL0\ PL0\
cd ..\..

cd utils\DefaultLanguageResMaker\
LanguageResMaker.exe
cd ..\..

Utils\IncrementVresion\IncrementVresion.exe Configuration\Version.defs REVISION 1
Utils\ReplaceInFiles\ReplaceInFiles.exe Configuration\Version.defs Configuration\GlobalAssemblyInfo.cs.tmpl Configuration\GlobalAssemblyInfo.cs
Utils\ReplaceInFiles\ReplaceInFiles.exe Configuration\Version.defs ReleaseGenerators\PascalABCNET_version.nsh.tmpl ReleaseGenerators\PascalABCNET_version.nsh
Utils\ReplaceInFiles\ReplaceInFiles.exe Configuration\Version.defs Configuration\pabcversion.txt.tmpl Release\pabcversion.txt

call Studio.bat /t:rebuild "/property:Configuration=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

cd ..\ReleaseGenerators
call PascalABCNET_ALL.bat

cd ..
call Studio.bat /t:rebuild "/property:Configuration=Release" PascalABCNET_40.sln
cd ReleaseGenerators
call PascalABCNETWithDotNet40.bat

cd ..
call Studio.bat /t:rebuild "/property:Configuration=Release" PascalABCNET.sln

GOTO EXIT

:ERROR
PAUSE

:EXIT

0 comments on commit 82ea860

Please sign in to comment.