From 1d4e04a0bb54d42a017a7f15d98c053ea145fed9 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 20 Mar 2023 14:15:49 -0700 Subject: [PATCH] CI: Windows Pre-Install Python Tests Make sure one can run Python tests without prior install on Windows. --- .github/workflows/windows.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 22211a4a8d..da06641364 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,8 +22,15 @@ jobs: cmake -S . -B build ` -DCMAKE_BUILD_TYPE=Debug ` -DopenPMD_USE_MPI=OFF + cmake --build build --config Debug --parallel 2 + if(!$?) { Exit $LASTEXITCODE } + + ctest --test-dir build -C Debug --output-on-failure + if(!$?) { Exit $LASTEXITCODE } + cmake --build build --config Debug --target install + if(!$?) { Exit $LASTEXITCODE } # add before install, and fix Python path: # ctest --test-dir build -C Debug --output-on-failure @@ -70,10 +77,14 @@ jobs: -G "Ninja" ^ -DCMAKE_C_COMPILER=clang-cl ^ -DCMAKE_CXX_COMPILER=clang-cl ^ - -DCMAKE_BUILD_TYPE=Release ^ + -DCMAKE_BUILD_TYPE=RelWithDebInfo ^ -DopenPMD_USE_MPI=OFF - cmake --build build --config Release --parallel 2 - cmake --build build --config Debug --target install -# add before install, and fix Python path: -# ctest --test-dir build -C Debug --output-on-failure + cmake --build build --config RelWithDebInfo --parallel 2 + if errorlevel 1 exit 1 + + ctest --test-dir build -C RelWithDebInfo --output-on-failure + if errorlevel 1 exit 1 + + cmake --build build --config RelWithDebInfo --target install + if errorlevel 1 exit 1