From 53b13573d8b598ed606049526b6510e6efa610b7 Mon Sep 17 00:00:00 2001 From: Andrey Fedorov Date: Fri, 3 Nov 2023 08:48:30 -0400 Subject: [PATCH] CI: enable testing on win and mac --- .github/workflows/cmake-macos.yml | 5 +++++ .github/workflows/cmake-win.yml | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-macos.yml b/.github/workflows/cmake-macos.yml index 0e078ff7..046e9967 100644 --- a/.github/workflows/cmake-macos.yml +++ b/.github/workflows/cmake-macos.yml @@ -90,6 +90,11 @@ jobs: run: | cd ${{ github.workspace }}/dcmqi-build && ninja + - name: "Test dcmqi" + run: | + cd ${{ github.workspace }}\dcmqi-build\dcmqi-build + ctest . + # ...and finally package it. - name: "Package dcmqi" # Only run if the event is not a pull request and the repository owner is QIICR. diff --git a/.github/workflows/cmake-win.yml b/.github/workflows/cmake-win.yml index 70bed6fe..3c6d76ef 100644 --- a/.github/workflows/cmake-win.yml +++ b/.github/workflows/cmake-win.yml @@ -57,10 +57,18 @@ jobs: echo "Step 3" cmake -G "Visual Studio 17 2022" -Ax64 -DITK_DIR:PATH=c:\ITK-install\lib\cmake\ITK-5.3 -DDCMTK_DIR:PATH=c:\DCMTK-install\cmake -DZLIB_ROOT:PATH=c:\zlib-install -DZLIB_INCLUDE_DIR:PATH=c:\zlib-install\include -DZLIB_LIBRARY:FILEPATH=c:\zlib-install\lib\zlib.lib -DBUILD_SHARED_LIBS:BOOL=OFF ${{ github.workspace }} - - name: Build dcmqi and package + - name: Build dcmqi run: | cd ${{ github.workspace }}\dcmqi-build/ cmake --build . --config Release -- /m + + - name: Test dcmqi + run: | + cd ${{ github.workspace }}\dcmqi-build\dcmqi-build + ctest . + + - name: Package dcmqi + run: | cd ${{ github.workspace }}\dcmqi-build\dcmqi-build cmake --build . --config Release --target PACKAGE -- /m