Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_shared_files
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
gitlab_shared_files
Commits
10c71515
Commit
10c71515
authored
2 months ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
Update cibuildwheel_windows.gitlab-ci.yml
parent
381ef942
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
+38
-37
38 additions, 37 deletions
.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
with
38 additions
and
37 deletions
.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
+
38
−
37
View file @
10c71515
...
@@ -9,10 +9,11 @@ release:pip:windows:
...
@@ -9,10 +9,11 @@ release:pip:windows:
# temporary rules until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/136 is closed
# temporary rules until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/136 is closed
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
# Only run on the main branch
-
never
-
if
:
$CI_COMMIT_TAG
# Or if a tag is pushed
# - if: $CI_COMMIT_BRANCH == "main" # Only run on the main branch
-
if
:
$CI_COMMIT_BRANCH == "dev"
# Allow manual runs on the dev branch
# - if: $CI_COMMIT_TAG # Or if a tag is pushed
when
:
manual
# - if: $CI_COMMIT_BRANCH == "dev" # Allow manual runs on the dev branch
# when: manual
needs
:
needs
:
-
build:windows_python
-
build:windows_python
...
@@ -41,49 +42,49 @@ release:pip:windows:
...
@@ -41,49 +42,49 @@ release:pip:windows:
# # 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]
#
before_script:
before_script
:
#
# Install Chocolatey
# Install Chocolatey
#
- Set-ExecutionPolicy Bypass -Scope Process -Force
-
Set-ExecutionPolicy Bypass -Scope Process -Force
#
- iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
-
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
#
# Install dependencies
# Install dependencies
#
- choco install visualstudio2022buildtools -y
-
choco install visualstudio2022buildtools -y
#
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
-
choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
#
- choco install git.install -y
-
choco install git.install -y
#
- choco install python -y
-
choco install python -y
#
# Install NuGet provider
# Install NuGet provider
#
- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
-
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
#
# Set up Visual Studio environment
# Set up Visual Studio environment
#
- Install-Module VSSetup -Scope CurrentUser -Force -ErrorAction SilentlyContinue
-
Install-Module VSSetup -Scope CurrentUser -Force -ErrorAction SilentlyContinue
#
- Import-Module VSSetup
-
Import-Module VSSetup
#
- $vsInstance = Get-VSSetupInstance | Select-VSSetupInstance
-
$vsInstance = Get-VSSetupInstance | Select-VSSetupInstance
#
# Explicit Visual Studio setup
# Explicit Visual Studio setup
#
- $vsPath = "C:\Program Files\Microsoft Visual Studio\2022\BuildTools"
-
$vsPath = "C:\Program Files\Microsoft Visual Studio\2022\BuildTools"
#
- $env:VSINSTALLDIR = $vsPath
-
$env:VSINSTALLDIR = $vsPath
#
- $env:VCINSTALLDIR = "${vsPath}\VC"
-
$env:VCINSTALLDIR = "${vsPath}\VC"
#
# Set CMake generator explicitly
# Set CMake generator explicitly
#
- $env:CMAKE_GENERATOR = "Visual Studio 17 2022"
-
$env:CMAKE_GENERATOR = "Visual Studio 17 2022"
#
- $env:CMAKE_PREFIX_PATH = $vsPath
-
$env:CMAKE_PREFIX_PATH = $vsPath
#
- $env:WindowsSDKDir = "C:\Program Files (x86)\Windows Kits\10"
-
$env:WindowsSDKDir = "C:\Program Files (x86)\Windows Kits\10"
#
- $env:Path = "${vsPath}\Common7\IDE;${vsPath}\Common7\Tools;${env:Path}"
-
$env:Path = "${vsPath}\Common7\IDE;${vsPath}\Common7\Tools;${env:Path}"
#
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
#
# Install cibuildwheel
# Install cibuildwheel
#
- 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
:
#
- $env:CMAKE_GENERATOR = "Visual Studio 17 2022"
-
$env:CMAKE_GENERATOR = "Visual Studio 17 2022"
#
- python -m cibuildwheel --output-dir wheelhouse --platform windows
-
python -m cibuildwheel --output-dir wheelhouse --platform windows
# deploy:pip:windows:
# deploy:pip:windows:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment