-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa: Using warnings for gh action visibility
- Loading branch information
Carsten Igel
committed
Apr 30, 2024
1 parent
4b70894
commit f300219
Showing
2 changed files
with
165 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,163 +1,163 @@ | ||
@ECHO off | ||
|
||
SET root=%~dp0\..\..\..\ | ||
|
||
PUSHD %root% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet pack src\dscom.build\dscom.build.csproj -p:Configuration=Release | ||
|
||
IF NOT EXIST %root%\_packages MKDIR _packages | ||
|
||
XCOPY /Y /I /C /F .\src\dscom\bin\Release\*.nupkg _packages\ | ||
XCOPY /Y /I /C /F .\src\dscom.build\bin\Release\*.nupkg _packages\ | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet nuget locals global-packages --clear | ||
|
||
POPD | ||
|
||
PUSHD %~dp0\..\comtestdotnet | ||
|
||
dotnet msbuild -nodeReuse:False -t:Clean -p:Configuration=Release -p:PerformAcceptanceTest=Runtime -p:SkipResolvePackageAssets=true | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Clean -p:Configuration=Release -p:PerformAcceptanceTest=Runtime -p:SkipResolvePackageAssets=true | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet add comtestdotnet.csproj package --prerelease -s %root%\_packages dSPACE.Runtime.InteropServices.BuildTasks | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net48x64.binlog | ||
|
||
SET ERRUNTIMEX64_NET48=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net60x64.binlog | ||
|
||
SET ERRUNTIMEX64_NET60=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net80x64.binlog | ||
|
||
SET ERRUNTIMEX64_NET80=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net48x86.binlog | ||
SET ERRUNTIMEX86_NET48=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net60x86.binlog | ||
SET ERRUNTIMEX86_NET60=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net80x86.binlog | ||
SET ERRUNTIMEX86_NET80=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet remove comtestdotnet.csproj package dSPACE.Runtime.InteropServices.BuildTasks | ||
|
||
POPD | ||
|
||
SetLocal EnableDelayedExpansion | ||
|
||
SET EXITCODE=0 | ||
|
||
IF NOT "%ERRUNTIMEX64_NET48%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "Runtime specific acceptance test for platform x64 using .NET FullFramework 4.8 failed." >&2 | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX64_NET60%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "Runtime specific acceptance test for platform x64 using .NET 6.0 failed." >&2 | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX64_NET80%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "Runtime specific acceptance test for platform x64 using .NET 8.0 failed." >&2 | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX86_NET48%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "Runtime specific acceptance test for platform x86 using .NET FullFramework 4.8 failed." >&2 | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX86_NET80%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "Runtime specific acceptance test for platform x86 using .NET 8.0 failed." >&2 | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX86_NET60%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "Runtime specific acceptance test for platform x64 using .NET 6.0 failed." >&2 | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x64\Release\net6.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "Could not find exported TLB file for .NET 6 (x64)" >&2 | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x86\Release\net6.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "Could not find exported TLB file for .NET 6 (x86)" >&2 | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x64\Release\net48\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "Could not find exported TLB file for .NET 4.8 (x64)" >&2 | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x86\Release\net48\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "Could not find exported TLB file for .NET 4.8 (x86)" >&2 | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x64\Release\net8.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "Could not find exported TLB file for .NET 8 (x64)" >&2 | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x86\Release\net8.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "Could not find exported TLB file for .NET 8 (x86)" >&2 | ||
) | ||
|
||
IF "%EXITCODE%" == "0" ( | ||
ECHO "Acceptance test completed successfully." | ||
) | ||
|
||
EXIT /B %EXITCODE% | ||
@ECHO off | ||
|
||
SET root=%~dp0\..\..\..\ | ||
|
||
PUSHD %root% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet pack src\dscom.build\dscom.build.csproj -p:Configuration=Release | ||
|
||
IF NOT EXIST %root%\_packages MKDIR _packages | ||
|
||
XCOPY /Y /I /C /F .\src\dscom\bin\Release\*.nupkg _packages\ | ||
XCOPY /Y /I /C /F .\src\dscom.build\bin\Release\*.nupkg _packages\ | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet nuget locals global-packages --clear | ||
|
||
POPD | ||
|
||
PUSHD %~dp0\..\comtestdotnet | ||
|
||
dotnet msbuild -nodeReuse:False -t:Clean -p:Configuration=Release -p:PerformAcceptanceTest=Runtime -p:SkipResolvePackageAssets=true | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Clean -p:Configuration=Release -p:PerformAcceptanceTest=Runtime -p:SkipResolvePackageAssets=true | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet add comtestdotnet.csproj package --prerelease -s %root%\_packages dSPACE.Runtime.InteropServices.BuildTasks | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net48x64.binlog | ||
|
||
SET ERRUNTIMEX64_NET48=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net60x64.binlog | ||
|
||
SET ERRUNTIMEX64_NET60=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x64 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net80x64.binlog | ||
|
||
SET ERRUNTIMEX64_NET80=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net48 -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net48x86.binlog | ||
SET ERRUNTIMEX86_NET48=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net6.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net60x86.binlog | ||
SET ERRUNTIMEX86_NET60=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet msbuild -nodeReuse:False -t:Build -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime -bl:%~dp0\net80x86.binlog | ||
SET ERRUNTIMEX86_NET80=%ERRORLEVEL% | ||
|
||
dotnet build-server shutdown | ||
|
||
dotnet remove comtestdotnet.csproj package dSPACE.Runtime.InteropServices.BuildTasks | ||
|
||
POPD | ||
|
||
SetLocal EnableDelayedExpansion | ||
|
||
SET EXITCODE=0 | ||
|
||
IF NOT "%ERRUNTIMEX64_NET48%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\comtestdotnet.csproj::Runtime specific acceptance test for platform x64 using .NET FullFramework 4.8 failed." | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX64_NET60%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\comtestdotnet.csproj::Runtime specific acceptance test for platform x64 using .NET 6.0 failed." | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX64_NET80%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\comtestdotnet.csproj::Runtime specific acceptance test for platform x64 using .NET 8.0 failed." | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX86_NET48%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\comtestdotnet.csproj::Runtime specific acceptance test for platform x86 using .NET FullFramework 4.8 failed." | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX86_NET80%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\comtestdotnet.csproj::Runtime specific acceptance test for platform x86 using .NET 8.0 failed." | ||
) | ||
|
||
IF NOT "%ERRUNTIMEX86_NET60%" == "0" ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x64\Release\net6.0\comtestdotnet.tlb::Runtime specific acceptance test for platform x64 using .NET 6.0 failed." | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x64\Release\net6.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x64\Release\net6.0\comtestdotnet.tlb::Could not find exported TLB file for .NET 6 (x64)" | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x86\Release\net6.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x86\Release\net6.0\comtestdotnet.tlb::Could not find exported TLB file for .NET 6 (x86)" | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x64\Release\net48\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x64\Release\net48\comtestdotnet.tlb::Could not find exported TLB file for .NET 4.8 (x64)" | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x86\Release\net48\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x86\Release\net48\comtestdotnet.tlb::Could not find exported TLB file for .NET 4.8 (x86)" | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x64\Release\net8.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x64\Release\net8.0\comtestdotnet.tlb::Could not find exported TLB file for .NET 8 (x64)" | ||
) | ||
|
||
IF NOT EXIST %~dp0\..\comtestdotnet\bin\x86\Release\net8.0\comtestdotnet.tlb ( | ||
SET EXITCODE=1 | ||
ECHO "::warning file=%~dp0\..\comtestdotnet\bin\x86\Release\net8.0\comtestdotnet.tlb::Could not find exported TLB file for .NET 8 (x86)" | ||
) | ||
|
||
IF "%EXITCODE%" == "0" ( | ||
ECHO "Acceptance test completed successfully." | ||
) | ||
|
||
EXIT /B %EXITCODE% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters