Skip to content
Snippets Groups Projects
Commit 4e53d949 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Wrong gitlab runner for windows_python

parent 4b840ec7
No related branches found
No related tags found
1 merge request!27Wrong gitlab runner for windows_python
......@@ -130,16 +130,26 @@ build:windows_python:
stage: build
needs: []
tags:
- docker
- windows
image: buildtools
before_script:
# Install Chocolatey
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install git -Y
- choco install python -Y
# Update PATH
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
script:
- python3 -m pip install virtualenv
- python -m pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- venv\Scripts\Activate.ps1
# Numpy dependancy for unit test
- python3 -m pip install numpy
- export AIDGE_INSTALL=`pwd`/install
- python3 -m pip install .
- python -m pip install numpy
- $env:AIDGE_INSTALL = "$pwd" + "install"
- python -m pip install .
artifacts:
expire_in: 1 week
paths:
......
......@@ -70,8 +70,8 @@ class CMakeBuild(build_ext):
self.spawn(['cmake', str(cwd), param_py, '-DTEST=OFF', f'-DCMAKE_INSTALL_PREFIX:PATH={install_path}'])
if not self.dry_run:
self.spawn(['cmake', '--build', '.', '-j', max_jobs])
self.spawn(['cmake', '--install', '.'])
self.spawn(['cmake', '--build', '.', '--config', 'Debug', '-j', max_jobs])
self.spawn(['cmake', '--install', '.', '--config', 'Debug'])
os.chdir(str(cwd))
aidge_package = build_lib / (get_project_name())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment