-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathstage-pack-pymanager.yml
More file actions
70 lines (62 loc) · 1.89 KB
/
stage-pack-pymanager.yml
File metadata and controls
70 lines (62 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
parameters:
DoFreethreaded: false
DoEmbed: false
SigningCertificate: ''
Artifacts:
- name: win32
- name: amd64
- name: arm64
- name: win32_test
- name: amd64_test
- name: arm64_test
- name: win32_t
freethreaded: true
- name: amd64_t
freethreaded: true
- name: arm64_t
freethreaded: true
- name: win32_embed
embed: true
- name: amd64_embed
embed: true
- name: arm64_embed
embed: true
jobs:
- job: Pack_PyManager
displayName: Pack PyManager bundle
workspace:
clean: all
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.10 or later'
inputs:
versionSpec: '>=3.10'
- ${{ each a in parameters.artifacts }}:
- ${{ if and(or(not(a.freethreaded), eq(parameters.DoFreethreaded, 'true')), or(not(a.embed), eq(parameters.DoEmbed, 'true'))) }}:
- task: DownloadPipelineArtifact@2
displayName: 'Download artifact: pymanager_${{ a.name }}'
inputs:
buildType: current
artifact: pymanager_${{ a.name }}
targetPath: $(Build.BinariesDirectory)\${{ a.name }}
- powershell: |
cp *.zip (mkdir $env:TARGET -Force)
cp __install__.json "${env:TARGET}\__install__.${{ a.name }}.json"
displayName: 'Relocate ${{ a.name }}'
workingDirectory: $(Build.BinariesDirectory)\${{ a.name }}
env:
TARGET: $(Build.ArtifactStagingDirectory)
- powershell: |
"Bundling the following packages:"
(dir __install__.*.json).FullName
python "$(Build.SourcesDirectory)\windows-release\merge-and-upload.py"
del __install__.*.json
workingDirectory: $(Build.ArtifactStagingDirectory)
displayName: 'Generate local index'
env:
LOCAL_INDEX: 1
NO_UPLOAD: 1
INDEX_FILE: 'index.json'
- publish: '$(Build.ArtifactStagingDirectory)'
artifact: pymanager_bundle
displayName: 'Publish Artifact: pymanager_bundle'