Skip to content

Commit 7a96b57

Browse files
authored
Stable release platform specific pipeline (#23716)
1 parent cdd8b37 commit 7a96b57

File tree

1 file changed

+72
-12
lines changed

1 file changed

+72
-12
lines changed

build/azure-pipeline.stable.yml

Lines changed: 72 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ resources:
1414
ref: main
1515
endpoint: Monaco
1616

17+
- repository: python-environment-tools
18+
type: github
19+
name: microsoft/python-environment-tools
20+
ref: release/latest
21+
endpoint: Monaco
22+
1723
parameters:
1824
- name: publishExtension
1925
displayName: 🚀 Publish Extension
@@ -25,7 +31,48 @@ extends:
2531
parameters:
2632
publishExtension: ${{ parameters.publishExtension }}
2733
l10nSourcePaths: ./src/client
34+
sourceRepositoriesToScan:
35+
include:
36+
- repository: python-environment-tools
37+
exclude:
38+
- repository: translations
39+
40+
buildPlatforms:
41+
- name: Linux
42+
vsceTarget: 'web'
43+
- name: Linux
44+
packageArch: arm64
45+
vsceTarget: linux-arm64
46+
- name: Linux
47+
packageArch: arm
48+
vsceTarget: linux-armhf
49+
- name: Linux
50+
packageArch: x64
51+
vsceTarget: linux-x64
52+
- name: Linux
53+
packageArch: arm64
54+
vsceTarget: alpine-arm64
55+
- name: Linux
56+
packageArch: x64
57+
vsceTarget: alpine-x64
58+
- name: MacOS
59+
packageArch: arm64
60+
vsceTarget: darwin-arm64
61+
- name: MacOS
62+
packageArch: x64
63+
vsceTarget: darwin-x64
64+
- name: Windows
65+
packageArch: arm
66+
vsceTarget: win32-arm64
67+
- name: Windows
68+
packageArch: x64
69+
vsceTarget: win32-x64
70+
2871
buildSteps:
72+
- checkout: self
73+
displayName: Checkout Python Extension
74+
path: ./s
75+
2976
- task: NodeTool@0
3077
inputs:
3178
versionSpec: '18.17.1'
@@ -38,33 +85,46 @@ extends:
3885
architecture: 'x64'
3986
displayName: Select Python version
4087

41-
- script: npm ci
42-
displayName: Install NPM dependencies
43-
4488
- script: python -m pip install -U pip
4589
displayName: Upgrade pip
4690

4791
- script: python -m pip install wheel nox
4892
displayName: Install wheel and nox
4993

50-
- script: |
51-
nox --session install_python_libs
52-
displayName: Install Jedi, get-pip, etc
94+
- script: npm ci
95+
displayName: Install NPM dependencies
5396

54-
- script: |
55-
python ./build/update_ext_version.py --release --for-publishing
56-
displayName: Update build number
97+
- script: nox --session install_python_libs
98+
displayName: Install Jedi, get-pip, etc
5799

58-
- script: |
59-
python ./build/update_package_file.py
100+
- script: python ./build/update_package_file.py
60101
displayName: Update telemetry in package.json
61102

62103
- script: npm run addExtensionPackDependencies
63104
displayName: Update optional extension dependencies
64105

65-
- script: gulp prePublishBundle
106+
- script: npx gulp prePublishBundle
66107
displayName: Build
67108

109+
- checkout: python-environment-tools
110+
displayName: Checkout python-environment-tools
111+
path: ./s/python-env-tools
112+
113+
- script: nox --session azure_pet_build_before
114+
displayName: Enable cargo config for azure
115+
116+
- template: azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates
117+
parameters:
118+
vsceTarget: $(vsceTarget)
119+
binaryName: pet
120+
signing: true
121+
workingDirectory: $(Build.SourcesDirectory)/python-env-tools
122+
buildWasm: false
123+
runTest: false
124+
125+
- script: nox --session azure_pet_build_after
126+
displayName: Move bin to final location
127+
68128
- script: python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)"
69129
displayName: Clean up Nox
70130
tsa:

0 commit comments

Comments
 (0)