Skip to content

Commit

Permalink
CI: enable testing on win and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov committed Nov 3, 2023
1 parent 2b3c928 commit 53b1357
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/cmake-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53b1357

Please sign in to comment.