Skip to content

fix collapsed label handling (freesurfer/freesurfer commit db3bdc7) #71

fix collapsed label handling (freesurfer/freesurfer commit db3bdc7)

fix collapsed label handling (freesurfer/freesurfer commit db3bdc7) #71

Workflow file for this run

name: Windows Build
on:
push:
branches: [ dev ]
tags:
- v*
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: windows-2019
if: ${{ startsWith(github.ref, 'refs/tags') || !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule init
git submodule update
- name: Build zlib
run: |
git clone https://github.com/madler/zlib.git
md zlib-build
cd zlib-build
cmake ..\zlib -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="..\zlib-install"
cmake --build . --config Release --target install
cd ..
dir
- name: Build ITK
run: |
md ITK-build
cd ITK-build
cmake.exe -G "Visual Studio 16 2019" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release ..\ITK
cmake --build . --config Release --target Install
cd ..
shell: cmd
- name: Build and test samseg python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- run: |
python -m pip wheel . -w .\dist --no-deps
python -m pip install . -f .\dist\
#python -m pip install -r requirements.txt
#python -m pip install pytest
#python -m pip install tensorflow
cd ..
python -c 'import samseg'
#python -m pytest samseg\samseg\tests
rm samseg\gems\*.pyd
rm samseg\samseg\gems\Release\*.pyd
env:
ZLIB_INCLUDE_DIR: .\zlib-install\include
ZLIB_LIBRARY: .\zlib-install\lib\zlibstatic.lib
- name: Build and test samseg python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- run: |
python -m pip wheel . -w .\dist --no-deps
python -m pip install . -f .\dist\
#python -m pip install -r requirements.txt
#python -m pip install pytest
#python -m pip install tensorflow
cd ..
python -c 'import samseg'
#python -m pytest samseg\samseg\tests
rm samseg\gems\*.pyd
rm samseg\samseg\gems\Release\*.pyd
env:
ZLIB_INCLUDE_DIR: .\zlib-install\include
ZLIB_LIBRARY: .\zlib-install\lib\zlibstatic.lib
- name: Build and test samseg python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
architecture: 'x64'
- run: |
python -m pip wheel . -w .\dist --no-deps
python -m pip install . -f .\dist\
#python -m pip install -r requirements.txt
#python -m pip install pytest
#python -m pip install tensorflow
cd ..
python -c 'import samseg'
#python -m pytest samseg\samseg\tests
rm samseg\gems\*.pyd
rm samseg\samseg\gems\Release\*.pyd
env:
ZLIB_INCLUDE_DIR: .\zlib-install\include
ZLIB_LIBRARY: .\zlib-install\lib\zlibstatic.lib
- name: Build and test samseg python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
architecture: 'x64'
- run: |
python -m pip wheel . -w .\dist --no-deps
python -m pip install . -f .\dist\
#python -m pip install -r requirements.txt
#python -m pip install pytest
#python -m pip install tensorflow
cd ..
python -c 'import samseg'
#python -m pytest samseg\samseg\tests
rm samseg\gems\*.pyd
rm samseg\samseg\gems\Release\*.pyd
env:
ZLIB_INCLUDE_DIR: .\zlib-install\include
ZLIB_LIBRARY: .\zlib-install\lib\zlibstatic.lib
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: windows-wheels
path: .\dist\*.whl
- name: Upload to PyPI
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
run: |
python -m pip install twine
python -m twine upload .\dist\*.whl -u __token__ -p "$env:PASSWORD"
env:
PASSWORD: ${{ secrets.PYPI_TOKEN }}