|
1 | | -# Run on a schedule |
2 | | -trigger: none |
3 | | -pr: none |
4 | | - |
5 | | -schedules: |
6 | | - - cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT) |
7 | | - displayName: Nightly Pre-Release Schedule |
8 | | - always: false # only run if there are source code changes |
9 | | - branches: |
10 | | - include: |
11 | | - - main |
12 | | - |
13 | | -resources: |
14 | | - repositories: |
15 | | - - repository: templates |
16 | | - type: github |
17 | | - name: microsoft/vscode-engineering |
18 | | - ref: main |
19 | | - endpoint: Monaco |
20 | | - |
21 | | -parameters: |
22 | | - - name: publishExtension |
23 | | - displayName: 🚀 Publish Extension |
24 | | - type: boolean |
25 | | - default: false |
26 | | - |
27 | | -extends: |
28 | | - template: azure-pipelines/extension/pre-release.yml@templates |
29 | | - parameters: |
30 | | - publishExtension: ${{ parameters.publishExtension }} |
31 | | - ghCreateTag: false |
32 | | - standardizedVersioning: true |
33 | | - l10nSourcePaths: ./src |
34 | | - |
35 | | - buildPlatforms: |
36 | | - - name: Linux |
37 | | - vsceTarget: 'web' |
38 | | - - name: Linux |
39 | | - packageArch: arm64 |
40 | | - vsceTarget: linux-arm64 |
41 | | - - name: Linux |
42 | | - packageArch: arm |
43 | | - vsceTarget: linux-armhf |
44 | | - - name: Linux |
45 | | - packageArch: x64 |
46 | | - vsceTarget: linux-x64 |
47 | | - - name: Linux |
48 | | - packageArch: arm64 |
49 | | - vsceTarget: alpine-arm64 |
50 | | - - name: Linux |
51 | | - packageArch: x64 |
52 | | - vsceTarget: alpine-x64 |
53 | | - - name: MacOS |
54 | | - packageArch: arm64 |
55 | | - vsceTarget: darwin-arm64 |
56 | | - - name: MacOS |
57 | | - packageArch: x64 |
58 | | - vsceTarget: darwin-x64 |
59 | | - - name: Windows |
60 | | - packageArch: arm |
61 | | - vsceTarget: win32-arm64 |
62 | | - - name: Windows |
63 | | - packageArch: x64 |
64 | | - vsceTarget: win32-x64 |
65 | | - |
66 | | - buildSteps: |
67 | | - - task: NodeTool@0 |
68 | | - inputs: |
69 | | - versionSpec: '20.18.1' |
70 | | - displayName: Select Node version |
71 | | - |
72 | | - - task: UsePythonVersion@0 |
73 | | - inputs: |
74 | | - versionSpec: '3.9' |
75 | | - addToPath: true |
76 | | - architecture: 'x64' |
77 | | - displayName: Select Python version |
78 | | - |
79 | | - - script: npm ci |
80 | | - displayName: Install NPM dependencies |
81 | | - |
82 | | - - script: python ./build/update_package_json.py |
83 | | - displayName: Update telemetry in package.json |
84 | | - |
85 | | - - script: python ./build/update_ext_version.py --for-publishing |
86 | | - displayName: Update build number |
87 | | - |
88 | | - - bash: | |
89 | | - mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin |
90 | | - chmod +x $(Build.SourcesDirectory)/python-env-tools/bin |
91 | | - displayName: Make Directory for python-env-tool binary |
92 | | -
|
93 | | - - bash: | |
94 | | - if [ "$(vsceTarget)" == "win32-x64" ]; then |
95 | | - echo "##vso[task.setvariable variable=buildTarget]x86_64-pc-windows-msvc" |
96 | | - elif [ "$(vsceTarget)" == "win32-arm64" ]; then |
97 | | - echo "##vso[task.setvariable variable=buildTarget]aarch64-pc-windows-msvc" |
98 | | - elif [ "$(vsceTarget)" == "linux-x64" ]; then |
99 | | - echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
100 | | - elif [ "$(vsceTarget)" == "linux-arm64" ]; then |
101 | | - echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu" |
102 | | - elif [ "$(vsceTarget)" == "linux-armhf" ]; then |
103 | | - echo "##vso[task.setvariable variable=buildTarget]armv7-unknown-linux-gnueabihf" |
104 | | - elif [ "$(vsceTarget)" == "darwin-x64" ]; then |
105 | | - echo "##vso[task.setvariable variable=buildTarget]x86_64-apple-darwin" |
106 | | - elif [ "$(vsceTarget)" == "darwin-arm64" ]; then |
107 | | - echo "##vso[task.setvariable variable=buildTarget]aarch64-apple-darwin" |
108 | | - elif [ "$(vsceTarget)" == "alpine-x64" ]; then |
109 | | - echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
110 | | - elif [ "$(vsceTarget)" == "alpine-arm64" ]; then |
111 | | - echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu" |
112 | | - elif [ "$(vsceTarget)" == "web" ]; then |
113 | | - echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
114 | | - else |
115 | | - echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
116 | | - fi |
117 | | - displayName: Set buildTarget variable |
118 | | -
|
119 | | - - task: DownloadPipelineArtifact@2 |
120 | | - inputs: |
121 | | - buildType: 'specific' |
122 | | - project: 'Monaco' |
123 | | - definition: 591 |
124 | | - buildVersionToDownload: 'latest' |
125 | | - branchName: 'refs/heads/main' |
126 | | - targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin' |
127 | | - artifactName: 'bin-$(buildTarget)' |
128 | | - itemPattern: | |
129 | | - pet.exe |
130 | | - pet |
131 | | - ThirdPartyNotices.txt |
132 | | -
|
133 | | - - bash: | |
134 | | - ls -l ./python-env-tools/bin |
135 | | - chmod +x ./python-env-tools/bin/pet* |
136 | | - ls -l ./python-env-tools/bin |
137 | | - displayName: Set chmod for pet binary |
138 | | -
|
139 | | - - script: npm run package |
140 | | - displayName: Build extension |
141 | | - |
142 | | - tsa: |
143 | | - config: |
144 | | - areaPath: 'Visual Studio Code Python Extensions' |
145 | | - serviceTreeID: '6e6194bc-7baa-4486-86d0-9f5419626d46' |
146 | | - enabled: true |
| 1 | +# Run on a schedule |
| 2 | +trigger: none |
| 3 | +pr: none |
| 4 | + |
| 5 | +schedules: |
| 6 | + - cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT) |
| 7 | + displayName: Nightly Pre-Release Schedule |
| 8 | + always: false # only run if there are source code changes |
| 9 | + branches: |
| 10 | + include: |
| 11 | + - main |
| 12 | + |
| 13 | +resources: |
| 14 | + repositories: |
| 15 | + - repository: templates |
| 16 | + type: github |
| 17 | + name: microsoft/vscode-engineering |
| 18 | + ref: main |
| 19 | + endpoint: Monaco |
| 20 | + |
| 21 | +parameters: |
| 22 | + - name: publishExtension |
| 23 | + displayName: 🚀 Publish Extension |
| 24 | + type: boolean |
| 25 | + default: false |
| 26 | + |
| 27 | +extends: |
| 28 | + template: azure-pipelines/extension/pre-release.yml@templates |
| 29 | + parameters: |
| 30 | + publishExtension: ${{ parameters.publishExtension }} |
| 31 | + ghCreateTag: false |
| 32 | + standardizedVersioning: true |
| 33 | + l10nSourcePaths: ./src |
| 34 | + |
| 35 | + buildPlatforms: |
| 36 | + - name: Linux |
| 37 | + vsceTarget: 'web' |
| 38 | + - name: Linux |
| 39 | + packageArch: arm64 |
| 40 | + vsceTarget: linux-arm64 |
| 41 | + - name: Linux |
| 42 | + packageArch: arm |
| 43 | + vsceTarget: linux-armhf |
| 44 | + - name: Linux |
| 45 | + packageArch: x64 |
| 46 | + vsceTarget: linux-x64 |
| 47 | + - name: Linux |
| 48 | + packageArch: arm64 |
| 49 | + vsceTarget: alpine-arm64 |
| 50 | + - name: Linux |
| 51 | + packageArch: x64 |
| 52 | + vsceTarget: alpine-x64 |
| 53 | + - name: MacOS |
| 54 | + packageArch: arm64 |
| 55 | + vsceTarget: darwin-arm64 |
| 56 | + - name: MacOS |
| 57 | + packageArch: x64 |
| 58 | + vsceTarget: darwin-x64 |
| 59 | + - name: Windows |
| 60 | + packageArch: arm |
| 61 | + vsceTarget: win32-arm64 |
| 62 | + - name: Windows |
| 63 | + packageArch: x64 |
| 64 | + vsceTarget: win32-x64 |
| 65 | + |
| 66 | + buildSteps: |
| 67 | + - task: NodeTool@0 |
| 68 | + inputs: |
| 69 | + versionSpec: '20.18.1' |
| 70 | + displayName: Select Node version |
| 71 | + |
| 72 | + - task: UsePythonVersion@0 |
| 73 | + inputs: |
| 74 | + versionSpec: '3.9' |
| 75 | + addToPath: true |
| 76 | + architecture: 'x64' |
| 77 | + displayName: Select Python version |
| 78 | + |
| 79 | + - script: npm ci |
| 80 | + displayName: Install NPM dependencies |
| 81 | + |
| 82 | + - script: python ./build/update_package_json.py |
| 83 | + displayName: Update telemetry in package.json |
| 84 | + |
| 85 | + - script: python ./build/update_ext_version.py --for-publishing |
| 86 | + displayName: Update build number |
| 87 | + |
| 88 | + - bash: | |
| 89 | + mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin |
| 90 | + chmod +x $(Build.SourcesDirectory)/python-env-tools/bin |
| 91 | + displayName: Make Directory for python-env-tool binary |
| 92 | +
|
| 93 | + - bash: | |
| 94 | + if [ "$(vsceTarget)" == "win32-x64" ]; then |
| 95 | + echo "##vso[task.setvariable variable=buildTarget]x86_64-pc-windows-msvc" |
| 96 | + elif [ "$(vsceTarget)" == "win32-arm64" ]; then |
| 97 | + echo "##vso[task.setvariable variable=buildTarget]aarch64-pc-windows-msvc" |
| 98 | + elif [ "$(vsceTarget)" == "linux-x64" ]; then |
| 99 | + echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
| 100 | + elif [ "$(vsceTarget)" == "linux-arm64" ]; then |
| 101 | + echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu" |
| 102 | + elif [ "$(vsceTarget)" == "linux-armhf" ]; then |
| 103 | + echo "##vso[task.setvariable variable=buildTarget]armv7-unknown-linux-gnueabihf" |
| 104 | + elif [ "$(vsceTarget)" == "darwin-x64" ]; then |
| 105 | + echo "##vso[task.setvariable variable=buildTarget]x86_64-apple-darwin" |
| 106 | + elif [ "$(vsceTarget)" == "darwin-arm64" ]; then |
| 107 | + echo "##vso[task.setvariable variable=buildTarget]aarch64-apple-darwin" |
| 108 | + elif [ "$(vsceTarget)" == "alpine-x64" ]; then |
| 109 | + echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
| 110 | + elif [ "$(vsceTarget)" == "alpine-arm64" ]; then |
| 111 | + echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu" |
| 112 | + elif [ "$(vsceTarget)" == "web" ]; then |
| 113 | + echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
| 114 | + else |
| 115 | + echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl" |
| 116 | + fi |
| 117 | + displayName: Set buildTarget variable |
| 118 | +
|
| 119 | + - task: DownloadPipelineArtifact@2 |
| 120 | + inputs: |
| 121 | + buildType: 'specific' |
| 122 | + project: 'Monaco' |
| 123 | + definition: 591 |
| 124 | + buildVersionToDownload: 'latest' |
| 125 | + branchName: 'refs/heads/main' |
| 126 | + targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin' |
| 127 | + artifactName: 'bin-$(buildTarget)' |
| 128 | + itemPattern: | |
| 129 | + pet.exe |
| 130 | + pet |
| 131 | + ThirdPartyNotices.txt |
| 132 | +
|
| 133 | + - bash: | |
| 134 | + ls -l ./python-env-tools/bin |
| 135 | + chmod +x ./python-env-tools/bin/pet* |
| 136 | + ls -l ./python-env-tools/bin |
| 137 | + displayName: Set chmod for pet binary |
| 138 | +
|
| 139 | + - script: npm run package |
| 140 | + displayName: Build extension |
| 141 | + |
| 142 | + tsa: |
| 143 | + config: |
| 144 | + areaPath: 'Pylance' |
| 145 | + serviceTreeID: 'e3c408e8-09e7-404f-a9af-22b4ac3807a3' |
| 146 | + enabled: true |
0 commit comments