@@ -170,85 +170,85 @@ jobs:
170170 TWINE_USERNAME: '__token__'
171171 TWINE_PASSWORD: $(TWINE_PASSWORD)
172172
173- - job : WindowsBuilds
174- workspace :
175- clean : all
176- strategy :
177- matrix :
178- VS_2022 :
179- poolName : ' Azure Pipelines'
180- vmImage : ' windows-2022'
181- COMPILER : ' Visual Studio 17 2022'
182- ARCH : ' x64'
183- PLATFORM : ' win64'
184- artifactName : ' Windows-VS-2022-x64'
185- VS_2019 :
186- poolName : ' Azure Pipelines'
187- vmImage : ' windows-2019'
188- COMPILER : ' Visual Studio 16 2019'
189- ARCH : ' x64'
190- PLATFORM : ' win64'
191- artifactName : ' Windows-VS-2019-x64'
192- pool :
193- vmImage : $[ variables['vmImage'] ]
194- steps :
195- - checkout : self
196- fetchDepth : 1
197- clean : true
198- - task : UsePythonVersion@0
199- inputs :
200- versionSpec : ' 3.11'
201- - task : PowerShell@2
202- displayName : ' Install Dependencies'
203- inputs :
204- targetType : filePath
205- filePath : ./CI/windows/install_deps.ps1
206- - task : PowerShell@2
207- displayName : " Build libm2k"
208- inputs :
209- targetType : ' filePath'
210- filePath : ./CI/windows/make_windows.ps1
211- - ${{ each pyVersion in parameters.pythonVersions }} :
212- - task : UsePythonVersion@0
213- displayName : Use Python ${{ pyVersion }}
214- inputs :
215- versionSpec : ' ${{ pyVersion }}'
216- - powershell : |
217- $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY
218- $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName
219-
220- $BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$env:PLATFORM"
221- $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$env:PLATFORM"
222-
223- Set-Location $TEMP_BUILD_DIR
224- python.exe -m pip install --user --upgrade pip setuptools wheel twine build virtualenv
225- $env:COMPILE_BINDINGS = $true
226- python.exe -m build
227- Remove-Item Env:COMPILE_BINDINGS
228- Copy-Item -Path "dist/libm2k*.whl" -Destination (Join-Path $BUILD_DIR "dist")
229- Set-Location $SRC_DIR
230- displayName: Wheel Python ${{ pyVersion }}
231- - task : PowerShell@2
232- displayName : ' Create libm2k-system-setup installer'
233- condition : and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
234- inputs :
235- targetType : ' filePath'
236- filePath : ./CI/windows/create_installer.ps1
237- - task : PublishPipelineArtifact@1
238- condition : and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
239- inputs :
240- targetPath : ' $(Build.ArtifactStagingDirectory)/installer'
241- artifactName : ' Libm2k-System-Setup-Exe'
242- - task : PowerShell@2
243- displayName : " Create ZIPs"
244- inputs :
245- targetType : ' filePath'
246- filePath : ./CI/windows/create_zips.ps1
247- - task : PublishPipelineArtifact@1
248- condition : succeeded()
249- inputs :
250- targetPath : ' $(Build.ArtifactStagingDirectory)/libm2k-$(PLATFORM)'
251- artifactName : ' $(artifactName)'
173+ # - job: WindowsBuilds
174+ # workspace:
175+ # clean: all
176+ # strategy:
177+ # matrix:
178+ # VS_2022:
179+ # poolName: 'Azure Pipelines'
180+ # vmImage: 'windows-2022'
181+ # COMPILER: 'Visual Studio 17 2022'
182+ # ARCH: 'x64'
183+ # PLATFORM: 'win64'
184+ # artifactName: 'Windows-VS-2022-x64'
185+ # VS_2019:
186+ # poolName: 'Azure Pipelines'
187+ # vmImage: 'windows-2019'
188+ # COMPILER: 'Visual Studio 16 2019'
189+ # ARCH: 'x64'
190+ # PLATFORM: 'win64'
191+ # artifactName: 'Windows-VS-2019-x64'
192+ # pool:
193+ # vmImage: $[ variables['vmImage'] ]
194+ # steps:
195+ # - checkout: self
196+ # fetchDepth: 1
197+ # clean: true
198+ # - task: UsePythonVersion@0
199+ # inputs:
200+ # versionSpec: '3.11'
201+ # - task: PowerShell@2
202+ # displayName: 'Install Dependencies'
203+ # inputs:
204+ # targetType: filePath
205+ # filePath: ./CI/windows/install_deps.ps1
206+ # - task: PowerShell@2
207+ # displayName: "Build libm2k"
208+ # inputs:
209+ # targetType: 'filePath'
210+ # filePath: ./CI/windows/make_windows.ps1
211+ # - ${{ each pyVersion in parameters.pythonVersions }}:
212+ # - task: UsePythonVersion@0
213+ # displayName: Use Python ${{ pyVersion }}
214+ # inputs:
215+ # versionSpec: '${{ pyVersion }}'
216+ # - powershell: |
217+ # $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY
218+ # $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName
219+ #
220+ # $BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$env:PLATFORM"
221+ # $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$env:PLATFORM"
222+ #
223+ # Set-Location $TEMP_BUILD_DIR
224+ # python.exe -m pip install --user --upgrade pip setuptools wheel twine build virtualenv
225+ # $env:COMPILE_BINDINGS = $true
226+ # python.exe -m build
227+ # Remove-Item Env:COMPILE_BINDINGS
228+ # Copy-Item -Path "dist/libm2k*.whl" -Destination (Join-Path $BUILD_DIR "dist")
229+ # Set-Location $SRC_DIR
230+ # displayName: Wheel Python ${{ pyVersion }}
231+ # - task: PowerShell@2
232+ # displayName: 'Create libm2k-system-setup installer'
233+ # condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
234+ # inputs:
235+ # targetType: 'filePath'
236+ # filePath: ./CI/windows/create_installer.ps1
237+ # - task: PublishPipelineArtifact@1
238+ # condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022'))
239+ # inputs:
240+ # targetPath: '$(Build.ArtifactStagingDirectory)/installer'
241+ # artifactName: 'Libm2k-System-Setup-Exe'
242+ # - task: PowerShell@2
243+ # displayName: "Create ZIPs"
244+ # inputs:
245+ # targetType: 'filePath'
246+ # filePath: ./CI/windows/create_zips.ps1
247+ # - task: PublishPipelineArtifact@1
248+ # condition: succeeded()
249+ # inputs:
250+ # targetPath: '$(Build.ArtifactStagingDirectory)/libm2k-$(PLATFORM)'
251+ # artifactName: '$(artifactName)'
252252
253253
254254
0 commit comments