diff --git a/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml b/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml index 4c856346df114ea4ea29308ce7873dcd8427737f..e11e8dce747773a26f3f2b84d2bfc99ffb0aa4fc 100644 --- a/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml +++ b/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml @@ -9,10 +9,11 @@ release:pip:windows: # temporary rules until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/136 is closed rules : - - if: $CI_COMMIT_BRANCH == "main" # Only run on the main branch - - if: $CI_COMMIT_TAG # Or if a tag is pushed - - if: $CI_COMMIT_BRANCH == "dev" # Allow manual runs on the dev branch - when: manual + - never + # - if: $CI_COMMIT_BRANCH == "main" # Only run on the main branch + # - if: $CI_COMMIT_TAG # Or if a tag is pushed + # - if: $CI_COMMIT_BRANCH == "dev" # Allow manual runs on the dev branch + # when: manual needs: - build:windows_python @@ -41,49 +42,49 @@ release:pip:windows: # # Download repositories # - $DEPENDENCY_JOB="build:windows_python" # - !reference [.windows:download:repositories, before_script] -# before_script: -# # Install Chocolatey -# - Set-ExecutionPolicy Bypass -Scope Process -Force -# - iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) + before_script: + # Install Chocolatey + - Set-ExecutionPolicy Bypass -Scope Process -Force + - iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) -# # Install dependencies -# - choco install visualstudio2022buildtools -y -# - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y -# - choco install git.install -y -# - choco install python -y + # Install dependencies + - choco install visualstudio2022buildtools -y + - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y + - choco install git.install -y + - choco install python -y -# # Install NuGet provider -# - Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force + # Install NuGet provider + - Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -# # Set up Visual Studio environment -# - Install-Module VSSetup -Scope CurrentUser -Force -ErrorAction SilentlyContinue -# - Import-Module VSSetup + # Set up Visual Studio environment + - Install-Module VSSetup -Scope CurrentUser -Force -ErrorAction SilentlyContinue + - Import-Module VSSetup -# - $vsInstance = Get-VSSetupInstance | Select-VSSetupInstance + - $vsInstance = Get-VSSetupInstance | Select-VSSetupInstance -# # Explicit Visual Studio setup -# - $vsPath = "C:\Program Files\Microsoft Visual Studio\2022\BuildTools" -# - $env:VSINSTALLDIR = $vsPath -# - $env:VCINSTALLDIR = "${vsPath}\VC" + # Explicit Visual Studio setup + - $vsPath = "C:\Program Files\Microsoft Visual Studio\2022\BuildTools" + - $env:VSINSTALLDIR = $vsPath + - $env:VCINSTALLDIR = "${vsPath}\VC" -# # Set CMake generator explicitly -# - $env:CMAKE_GENERATOR = "Visual Studio 17 2022" -# - $env:CMAKE_PREFIX_PATH = $vsPath -# - $env:WindowsSDKDir = "C:\Program Files (x86)\Windows Kits\10" + # Set CMake generator explicitly + - $env:CMAKE_GENERATOR = "Visual Studio 17 2022" + - $env:CMAKE_PREFIX_PATH = $vsPath + - $env:WindowsSDKDir = "C:\Program Files (x86)\Windows Kits\10" -# - $env:Path = "${vsPath}\Common7\IDE;${vsPath}\Common7\Tools;${env:Path}" -# - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") + - $env:Path = "${vsPath}\Common7\IDE;${vsPath}\Common7\Tools;${env:Path}" + - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") -# # Install cibuildwheel -# - py -m pip install cibuildwheel==2.22.0 + # Install cibuildwheel + - py -m pip install cibuildwheel==2.22.0 -# # Download repositories -# - $DEPENDENCY_JOB="build:windows_python" -# - !reference [.windows:download:repositories, before_script] + # Download repositories + - $DEPENDENCY_JOB="build:windows_python" + - !reference [.windows:download:repositories, before_script] -# script: -# - $env:CMAKE_GENERATOR = "Visual Studio 17 2022" -# - python -m cibuildwheel --output-dir wheelhouse --platform windows + script: + - $env:CMAKE_GENERATOR = "Visual Studio 17 2022" + - python -m cibuildwheel --output-dir wheelhouse --platform windows # deploy:pip:windows: