Separate windows workflow build and run parts
This commit is contained in:
parent
f189f66152
commit
0957c38f56
5 changed files with 26 additions and 13 deletions
5
.github/workflows/unit_tests.yml
vendored
5
.github/workflows/unit_tests.yml
vendored
|
@ -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' }}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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%
|
14
ci/actions/windows/run.ps1
Normal file
14
ci/actions/windows/run.ps1
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue