Skip to content

Fixed SimpleITK dtype issue, bundle running locally. #72

Fixed SimpleITK dtype issue, bundle running locally.

Fixed SimpleITK dtype issue, bundle running locally. #72

Workflow file for this run

name: Build Windows
on:
push:
branches: [master,update]
pull_request:
branches:
- '*'
jobs:
build:
name: Build packages
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Collect submodules
uses: actions/checkout@v3
with:
submodules: 'recursive'
# Not using the ANTs c++ backend on Windows, have to investigate how to execute the bash scripts.
# But have to download it due to the expected copying of the install folder...
- name: Download ANTs
uses: robinraju/release-downloader@main
with:
repository: "raidionics/Raidionics-dependencies"
latest: true
fileName: "ANTsX-v2.4.3_windows.zip"
out-file-path: "downloads"
- name: Extract ANTs
run: |
cd ${{github.workspace}}/downloads/
mkdir ${{github.workspace}}/ANTs
mkdir ${{github.workspace}}/ANTs/install
# tar -xf ANTsX-v2.4.3_windows.zip -C ${{github.workspace}}/ANTs/install/
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install matplotlib==3.3.4
pip install -e git+https://github.com/dbouget/raidionics_rads_lib.git@update#egg=raidionicsrads
pip install -r assets/requirements.txt
- name: Build software
run: |
pip install pyinstaller==5.3
mkdir tmp_dependencies
pyinstaller --noconfirm --clean assets/main.spec
- name: Make installer
run: |
makensis.exe assets/Raidionics.nsi
cp -r assets/Raidionics-1.2.1-win.exe dist/Raidionics-1.2.1-win.exe
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: Package
path: ${{github.workspace}}/dist/Raidionics-*
if-no-files-found: error