Separate windows workflow build and run parts

This commit is contained in:
Piotr Wójcik 2023-01-30 22:10:00 +01:00
commit 0957c38f56
5 changed files with 26 additions and 13 deletions

View file

@ -99,7 +99,10 @@ jobs:
- name: Fetch Deps
run: ci/actions/windows/install_deps.ps1
- name: Build & Run Tests
- name: Build Tests
run: ci/actions/windows/build.ps1
- name: Run Tests [TEST_USE_ROCKSDB=${{ env.TEST_USE_ROCKSDB }}]
run: ci/actions/windows/run.ps1
env:
DEADLINE_SCALE_FACTOR: ${{ env.TEST_USE_ROCKSDB == 1 && '2' || '1' }}

View file

@ -23,6 +23,12 @@ cmake --build . ^
--config %BUILD_TYPE% ^
-- /m:2
set exit_code=%errorlevel%
echo "Packaging NSIS"
call "%cmake_path%\cpack.exe" -C %BUILD_TYPE%
echo "Packaging ZIP"
call "%cmake_path%\cpack.exe" -G ZIP -C %BUILD_TYPE%
goto exit
:exit

View file

@ -52,12 +52,8 @@ if (${env:RUN} -eq "artifact") {
if (${LastExitCode} -ne 0) {
throw "Failed to build ${env:RUN}"
}
$env:cmake_path = Split-Path -Path(get-command cmake.exe).Path
. "$PSScriptRoot\signing.ps1"
& ..\ci\actions\windows\run.bat
if (${LastExitCode} -ne 0) {
throw "Failed to Pass Test ${env:RUN}"
}
Pop-Location

View file

@ -17,10 +17,4 @@ set rpc_code=%errorlevel%
echo Core Test %core_code%
echo RPC Test %rpc_code%
exit /B %core_code%
:artifact
echo "Packaging NSIS"
call "%cmake_path%\cpack.exe" -C %BUILD_TYPE%
echo "Packaging ZIP"
call "%cmake_path%\cpack.exe" -G ZIP -C %BUILD_TYPE%
exit /B %core_code%

View file

@ -0,0 +1,14 @@
$ErrorActionPreference = "Continue"
$env:BUILD_TYPE = "Debug"
$env:NETWORK_CFG = "dev"
$env:RUN = "test"
Push-Location build
& ..\ci\actions\windows\run.bat
if (${LastExitCode} -ne 0) {
throw "Failed to Pass Test ${env:RUN}"
}
Pop-Location