Commit dce902dd authored by Thomas Vincent's avatar Thomas Vincent
Browse files

add windows fat binary build and test

parent ef2429be
Pipeline #23787 passed with stages
in 52 minutes and 49 seconds
......@@ -187,6 +187,66 @@ manylinux2014_test_cp38:
- manylinux2014_wheels
# Windows fat binary
windows_exe:
extends: .windows_base_python37
stage: build
variables:
WITH_QT_TEST: "False"
script:
# Setup Visual Studio to use
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build\\vcvarsall.bat" amd64 -vcvars_ver=14.16
# Prepare source
- rd /s /q windows_build
- md windows_build
- cd windows_build
- curl -o untar.py https://gitlab.esrf.fr/silx/bob/main/raw/master/untar.py
- python untar.py "../artifacts/%PROJECT%*.tar.gz"
- cd %PROJECT%*
# Install build dependencies
- pip install --upgrade -r https://gitlab.esrf.fr/silx/bob/main/raw/master/requirements-build.txt
# Install pyopencl build dependencies first
- pip install numpy pybind11
# Install pyopencl first to use a wheel from silx.org under Windows
- pip install --find-links http://www.silx.org/pub/wheelhouse/ --trusted-host www.silx.org --prefer-binary pyopencl
- pip install .[full]
# Install pyinstaller
- pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
# Generate fat binary
- cd package
- cd windows
- pyinstaller pyinstaller.spec
- pyinstaller pyinstaller-silx-view.spec
- cd dist
- dir
- xcopy silx-view\silx-view.exe silx
- xcopy silx-view\silx-view.exe.manifest silx
- python -m zipfile -c silx-windows-application.zip silx
- xcopy silx-windows-application.zip "..\\..\\..\\..\\..\\artifacts"
- cd ..
- cd ..
- cd ..
artifacts:
paths:
- "artifacts"
when: on_success
expire_in: 8h
windows_test_exe:
extends: .windows_base_python37
script:
- rd /s /q silx
- python -m zipfile -e "artifacts\\silx-windows-application.zip" .
- cd silx
- silx.exe test --no-gui --no-opencl
- cd ..
- rmdir silx /s /q
dependencies:
- windows_exe
# Deploy
pages:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment