|
37 | 37 | - job: LinuxBuilds |
38 | 38 | strategy: |
39 | 39 | matrix: |
40 | | - ubuntu_20_04: |
41 | | - imageName: 'ubuntu-20.04' |
42 | | - OS_TYPE: 'ubuntu_docker' |
43 | | - OS_VERSION: focal |
44 | | - artifactName: 'Linux-Ubuntu-20.04' |
45 | 40 | ubuntu_22_04: |
46 | 41 | imageName: 'ubuntu-22.04' |
47 | 42 | OS_TYPE: 'ubuntu_docker' |
|
73 | 68 | condition: ne(variables['System.JobName'], 'deploy_doxygen') |
74 | 69 | inputs: |
75 | 70 | sourceFolder: '$(Agent.BuildDirectory)/s/build/' |
76 | | - contents: '$(Agent.BuildDirectory)/s/build/?(libm2k*.deb|libm2k*.rpm)' |
| 71 | + contents: '$(Agent.BuildDirectory)/s/build/?(libm2k*.deb|libm2k*.rpm|python3-libm2k*.deb)' |
77 | 72 | targetFolder: '$(Build.ArtifactStagingDirectory)' |
78 | 73 | - task: PublishPipelineArtifact@1 |
79 | 74 | condition: and(succeeded(), ne(variables['System.JobName'], 'deploy_doxygen')) |
|
86 | 81 | clean: all |
87 | 82 | strategy: |
88 | 83 | matrix: |
89 | | - macOS_13_x64: |
90 | | - poolName: 'Azure Pipelines' |
91 | | - vmImage: 'macOS-13' |
92 | | - artifactName: 'macOS-13-x64' |
93 | 84 | macOS_14_x64: |
94 | 85 | poolName: 'Azure Pipelines' |
95 | 86 | vmImage: 'macOS-14' |
@@ -170,85 +161,78 @@ jobs: |
170 | 161 | TWINE_USERNAME: '__token__' |
171 | 162 | TWINE_PASSWORD: $(TWINE_PASSWORD) |
172 | 163 |
|
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)' |
| 164 | +#- job: WindowsBuilds |
| 165 | +# workspace: |
| 166 | +# clean: all |
| 167 | +# strategy: |
| 168 | +# matrix: |
| 169 | +# VS_2022: |
| 170 | +# poolName: 'Azure Pipelines' |
| 171 | +# vmImage: 'windows-2022' |
| 172 | +# COMPILER: 'Visual Studio 17 2022' |
| 173 | +# ARCH: 'x64' |
| 174 | +# PLATFORM: 'win64' |
| 175 | +# artifactName: 'Windows-VS-2022-x64' |
| 176 | +# pool: |
| 177 | +# vmImage: $[ variables['vmImage'] ] |
| 178 | +# steps: |
| 179 | +# - checkout: self |
| 180 | +# fetchDepth: 1 |
| 181 | +# clean: true |
| 182 | +# - task: UsePythonVersion@0 |
| 183 | +# inputs: |
| 184 | +# versionSpec: '3.11' |
| 185 | +# - task: PowerShell@2 |
| 186 | +# displayName: 'Install Dependencies' |
| 187 | +# inputs: |
| 188 | +# targetType: filePath |
| 189 | +# filePath: ./CI/windows/install_deps.ps1 |
| 190 | +# - task: PowerShell@2 |
| 191 | +# displayName: "Build libm2k" |
| 192 | +# inputs: |
| 193 | +# targetType: 'filePath' |
| 194 | +# filePath: ./CI/windows/make_windows.ps1 |
| 195 | +# - ${{ each pyVersion in parameters.pythonVersions }}: |
| 196 | +# - task: UsePythonVersion@0 |
| 197 | +# displayName: Use Python ${{ pyVersion }} |
| 198 | +# inputs: |
| 199 | +# versionSpec: '${{ pyVersion }}' |
| 200 | +# - powershell: | |
| 201 | +# $SRC_DIR = Get-Item -Path $env:BUILD_SOURCESDIRECTORY |
| 202 | +# $OUTSIDE_BUILD = $SRC_DIR.Parent.FullName |
| 203 | +# |
| 204 | +# $BUILD_DIR = Join-Path $OUTSIDE_BUILD "libm2k-$env:PLATFORM" |
| 205 | +# $TEMP_BUILD_DIR = Join-Path $SRC_DIR "tmp-build-$env:PLATFORM" |
| 206 | +# |
| 207 | +# Set-Location $TEMP_BUILD_DIR |
| 208 | +# python.exe -m pip install --user --upgrade pip setuptools wheel twine build virtualenv |
| 209 | +# $env:COMPILE_BINDINGS = $true |
| 210 | +# python.exe -m build |
| 211 | +# Remove-Item Env:COMPILE_BINDINGS |
| 212 | +# Copy-Item -Path "dist/libm2k*.whl" -Destination (Join-Path $BUILD_DIR "dist") |
| 213 | +# Set-Location $SRC_DIR |
| 214 | +# displayName: Wheel Python ${{ pyVersion }} |
| 215 | +# - task: PowerShell@2 |
| 216 | +# displayName: 'Create libm2k-system-setup installer' |
| 217 | +# condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022')) |
| 218 | +# inputs: |
| 219 | +# targetType: 'filePath' |
| 220 | +# filePath: ./CI/windows/create_installer.ps1 |
| 221 | +# - task: PublishPipelineArtifact@1 |
| 222 | +# condition: and(succeeded(), eq(variables['System.JobName'], 'VS_2022')) |
| 223 | +# inputs: |
| 224 | +# targetPath: '$(Build.ArtifactStagingDirectory)/installer' |
| 225 | +# artifactName: 'Libm2k-System-Setup-Exe' |
| 226 | +# - task: PowerShell@2 |
| 227 | +# displayName: "Create ZIPs" |
| 228 | +# inputs: |
| 229 | +# targetType: 'filePath' |
| 230 | +# filePath: ./CI/windows/create_zips.ps1 |
| 231 | +# - task: PublishPipelineArtifact@1 |
| 232 | +# condition: succeeded() |
| 233 | +# inputs: |
| 234 | +# targetPath: '$(Build.ArtifactStagingDirectory)/libm2k-$(PLATFORM)' |
| 235 | +# artifactName: '$(artifactName)' |
252 | 236 |
|
253 | 237 |
|
254 | 238 |
|
|
0 commit comments