|
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 | | - l10nSourcePaths: ./src |
31 | | - standardizedVersioning: true |
32 | | - ghCreateTag: false |
33 | | - buildPlatforms: |
34 | | - - name: Linux |
35 | | - vsceTarget: '' |
36 | | - - name: Linux |
37 | | - packageArch: arm64 |
38 | | - vsceTarget: linux-arm64 |
39 | | - - name: Linux |
40 | | - packageArch: arm |
41 | | - vsceTarget: linux-armhf |
42 | | - - name: Linux |
43 | | - packageArch: x64 |
44 | | - vsceTarget: linux-x64 |
45 | | - - name: MacOS |
46 | | - packageArch: arm64 |
47 | | - vsceTarget: darwin-arm64 |
48 | | - - name: MacOS |
49 | | - packageArch: x64 |
50 | | - vsceTarget: darwin-x64 |
51 | | - - name: Windows |
52 | | - packageArch: arm |
53 | | - vsceTarget: win32-arm64 |
54 | | - - name: Windows |
55 | | - packageArch: x64 |
56 | | - vsceTarget: win32-x64 |
57 | | - |
58 | | - buildSteps: |
59 | | - - task: NodeTool@0 |
60 | | - inputs: |
61 | | - versionSpec: '22.17.0' |
62 | | - displayName: Select Node version |
63 | | - |
64 | | - - task: UsePythonVersion@0 |
65 | | - inputs: |
66 | | - versionSpec: '3.9' |
67 | | - addToPath: true |
68 | | - architecture: 'x64' |
69 | | - displayName: Select Python version |
70 | | - |
71 | | - - script: npm ci |
72 | | - displayName: Install NPM dependencies |
73 | | - |
74 | | - - script: python -m pip install -U pip |
75 | | - displayName: Upgrade pip |
76 | | - |
77 | | - - script: python -m pip install wheel nox |
78 | | - displayName: Install wheel and nox |
79 | | - |
80 | | - # update according packageArch |
81 | | - - script: python -m nox --session install_bundled_libs |
82 | | - displayName: Install Python dependencies |
83 | | - env: |
84 | | - VSCETARGET: ${{ variables.VSCETARGET }} |
85 | | - |
86 | | - - script: npm run package |
87 | | - displayName: Build extension |
88 | | - |
89 | | - tsa: |
90 | | - config: |
91 | | - areaPath: 'Visual Studio Code Python Extensions' |
92 | | - serviceTreeID: '6e6194bc-7baa-4486-86d0-9f5419626d46' |
93 | | - enabled: true |
94 | | - |
95 | | - publishExtension: ${{ parameters.publishExtension }} |
| 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 | + l10nSourcePaths: ./src |
| 31 | + standardizedVersioning: true |
| 32 | + ghCreateTag: false |
| 33 | + buildPlatforms: |
| 34 | + - name: Linux |
| 35 | + vsceTarget: '' |
| 36 | + - name: Linux |
| 37 | + packageArch: arm64 |
| 38 | + vsceTarget: linux-arm64 |
| 39 | + - name: Linux |
| 40 | + packageArch: arm |
| 41 | + vsceTarget: linux-armhf |
| 42 | + - name: Linux |
| 43 | + packageArch: x64 |
| 44 | + vsceTarget: linux-x64 |
| 45 | + - name: MacOS |
| 46 | + packageArch: arm64 |
| 47 | + vsceTarget: darwin-arm64 |
| 48 | + - name: MacOS |
| 49 | + packageArch: x64 |
| 50 | + vsceTarget: darwin-x64 |
| 51 | + - name: Windows |
| 52 | + packageArch: arm |
| 53 | + vsceTarget: win32-arm64 |
| 54 | + - name: Windows |
| 55 | + packageArch: x64 |
| 56 | + vsceTarget: win32-x64 |
| 57 | + |
| 58 | + buildSteps: |
| 59 | + - task: NodeTool@0 |
| 60 | + inputs: |
| 61 | + versionSpec: '22.17.0' |
| 62 | + displayName: Select Node version |
| 63 | + |
| 64 | + - task: UsePythonVersion@0 |
| 65 | + inputs: |
| 66 | + versionSpec: '3.9' |
| 67 | + addToPath: true |
| 68 | + architecture: 'x64' |
| 69 | + displayName: Select Python version |
| 70 | + |
| 71 | + - script: npm ci |
| 72 | + displayName: Install NPM dependencies |
| 73 | + |
| 74 | + - script: python -m pip install -U pip |
| 75 | + displayName: Upgrade pip |
| 76 | + |
| 77 | + - script: python -m pip install wheel nox |
| 78 | + displayName: Install wheel and nox |
| 79 | + |
| 80 | + # update according packageArch |
| 81 | + - script: python -m nox --session install_bundled_libs |
| 82 | + displayName: Install Python dependencies |
| 83 | + env: |
| 84 | + VSCETARGET: ${{ variables.VSCETARGET }} |
| 85 | + |
| 86 | + - script: npm run package |
| 87 | + displayName: Build extension |
| 88 | + |
| 89 | + tsa: |
| 90 | + config: |
| 91 | + areaPath: 'Pylance' |
| 92 | + serviceTreeID: 'e3c408e8-09e7-404f-a9af-22b4ac3807a3' |
| 93 | + enabled: true |
| 94 | + |
| 95 | + publishExtension: ${{ parameters.publishExtension }} |
0 commit comments