Skip to content
Snippets Groups Projects
Commit bafca2c1 authored by Maxence Naud's avatar Maxence Naud
Browse files

Update cibuildwheel_windows.gitlab-ci.yml

parent 092f9a3d
No related branches found
No related tags found
No related merge requests found
...@@ -44,19 +44,24 @@ release:pip:windows: ...@@ -44,19 +44,24 @@ release:pip:windows:
before_script: before_script:
# Install Chocolatey # 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')) - 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 # Install dependencies
- choco install python -y --version 3.12.4 - choco install visualstudio2022buildtools -y --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x64"
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install visualstudio2022buildtools -y --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools"
- choco install git.install -y - choco install git.install -y
- choco install python -y
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# Explicitly set up Visual Studio environment
- $vsPath = vswhere -latest -property installationPath
- Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
- Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
- py -m pip install cibuildwheel==2.22.0 - py -m pip install cibuildwheel==2.22.0
# Download repositories # Download repositories
- $DEPENDENCY_JOB="build:windows_python" - $DEPENDENCY_JOB="build:windows_python"
- !reference [.windows:download:repositories, before_script] - !reference [.windows:download:repositories, before_script]
script: script:
- python -m cibuildwheel --output-dir wheelhouse --platform windows - $env:CMAKE_GENERATOR = "NMake Makefiles"
- python -m cibuildwheel --output-dir wheelhouse --platform windows --verbose
deploy:pip:windows: deploy:pip:windows:
......
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