Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
292 changes: 146 additions & 146 deletions build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,146 +1,146 @@
# Run on a schedule
trigger: none
pr: none

schedules:
- cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT)
displayName: Nightly Pre-Release Schedule
always: false # only run if there are source code changes
branches:
include:
- main

resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco

parameters:
- name: publishExtension
displayName: 🚀 Publish Extension
type: boolean
default: false

extends:
template: azure-pipelines/extension/pre-release.yml@templates
parameters:
publishExtension: ${{ parameters.publishExtension }}
ghCreateTag: false
standardizedVersioning: true
l10nSourcePaths: ./src

buildPlatforms:
- name: Linux
vsceTarget: 'web'
- name: Linux
packageArch: arm64
vsceTarget: linux-arm64
- name: Linux
packageArch: arm
vsceTarget: linux-armhf
- name: Linux
packageArch: x64
vsceTarget: linux-x64
- name: Linux
packageArch: arm64
vsceTarget: alpine-arm64
- name: Linux
packageArch: x64
vsceTarget: alpine-x64
- name: MacOS
packageArch: arm64
vsceTarget: darwin-arm64
- name: MacOS
packageArch: x64
vsceTarget: darwin-x64
- name: Windows
packageArch: arm
vsceTarget: win32-arm64
- name: Windows
packageArch: x64
vsceTarget: win32-x64

buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '20.18.1'
displayName: Select Node version

- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
architecture: 'x64'
displayName: Select Python version

- script: npm ci
displayName: Install NPM dependencies

- script: python ./build/update_package_json.py
displayName: Update telemetry in package.json

- script: python ./build/update_ext_version.py --for-publishing
displayName: Update build number

- bash: |
mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin
chmod +x $(Build.SourcesDirectory)/python-env-tools/bin
displayName: Make Directory for python-env-tool binary

- bash: |
if [ "$(vsceTarget)" == "win32-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-pc-windows-msvc"
elif [ "$(vsceTarget)" == "win32-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-pc-windows-msvc"
elif [ "$(vsceTarget)" == "linux-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
elif [ "$(vsceTarget)" == "linux-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu"
elif [ "$(vsceTarget)" == "linux-armhf" ]; then
echo "##vso[task.setvariable variable=buildTarget]armv7-unknown-linux-gnueabihf"
elif [ "$(vsceTarget)" == "darwin-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-apple-darwin"
elif [ "$(vsceTarget)" == "darwin-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-apple-darwin"
elif [ "$(vsceTarget)" == "alpine-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
elif [ "$(vsceTarget)" == "alpine-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu"
elif [ "$(vsceTarget)" == "web" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
else
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
fi
displayName: Set buildTarget variable

- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'Monaco'
definition: 591
buildVersionToDownload: 'latest'
branchName: 'refs/heads/main'
targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin'
artifactName: 'bin-$(buildTarget)'
itemPattern: |
pet.exe
pet
ThirdPartyNotices.txt

- bash: |
ls -l ./python-env-tools/bin
chmod +x ./python-env-tools/bin/pet*
ls -l ./python-env-tools/bin
displayName: Set chmod for pet binary

- script: npm run package
displayName: Build extension

tsa:
config:
areaPath: 'Visual Studio Code Python Extensions'
serviceTreeID: '6e6194bc-7baa-4486-86d0-9f5419626d46'
enabled: true
# Run on a schedule
trigger: none
pr: none
schedules:
- cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT)
displayName: Nightly Pre-Release Schedule
always: false # only run if there are source code changes
branches:
include:
- main
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
parameters:
- name: publishExtension
displayName: 🚀 Publish Extension
type: boolean
default: false
extends:
template: azure-pipelines/extension/pre-release.yml@templates
parameters:
publishExtension: ${{ parameters.publishExtension }}
ghCreateTag: false
standardizedVersioning: true
l10nSourcePaths: ./src
buildPlatforms:
- name: Linux
vsceTarget: 'web'
- name: Linux
packageArch: arm64
vsceTarget: linux-arm64
- name: Linux
packageArch: arm
vsceTarget: linux-armhf
- name: Linux
packageArch: x64
vsceTarget: linux-x64
- name: Linux
packageArch: arm64
vsceTarget: alpine-arm64
- name: Linux
packageArch: x64
vsceTarget: alpine-x64
- name: MacOS
packageArch: arm64
vsceTarget: darwin-arm64
- name: MacOS
packageArch: x64
vsceTarget: darwin-x64
- name: Windows
packageArch: arm
vsceTarget: win32-arm64
- name: Windows
packageArch: x64
vsceTarget: win32-x64
buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '20.18.1'
displayName: Select Node version
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
architecture: 'x64'
displayName: Select Python version
- script: npm ci
displayName: Install NPM dependencies
- script: python ./build/update_package_json.py
displayName: Update telemetry in package.json
- script: python ./build/update_ext_version.py --for-publishing
displayName: Update build number
- bash: |
mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin
chmod +x $(Build.SourcesDirectory)/python-env-tools/bin
displayName: Make Directory for python-env-tool binary
- bash: |
if [ "$(vsceTarget)" == "win32-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-pc-windows-msvc"
elif [ "$(vsceTarget)" == "win32-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-pc-windows-msvc"
elif [ "$(vsceTarget)" == "linux-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
elif [ "$(vsceTarget)" == "linux-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu"
elif [ "$(vsceTarget)" == "linux-armhf" ]; then
echo "##vso[task.setvariable variable=buildTarget]armv7-unknown-linux-gnueabihf"
elif [ "$(vsceTarget)" == "darwin-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-apple-darwin"
elif [ "$(vsceTarget)" == "darwin-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-apple-darwin"
elif [ "$(vsceTarget)" == "alpine-x64" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
elif [ "$(vsceTarget)" == "alpine-arm64" ]; then
echo "##vso[task.setvariable variable=buildTarget]aarch64-unknown-linux-gnu"
elif [ "$(vsceTarget)" == "web" ]; then
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
else
echo "##vso[task.setvariable variable=buildTarget]x86_64-unknown-linux-musl"
fi
displayName: Set buildTarget variable
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'Monaco'
definition: 591
buildVersionToDownload: 'latest'
branchName: 'refs/heads/main'
targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin'
artifactName: 'bin-$(buildTarget)'
itemPattern: |
pet.exe
pet
ThirdPartyNotices.txt
- bash: |
ls -l ./python-env-tools/bin
chmod +x ./python-env-tools/bin/pet*
ls -l ./python-env-tools/bin
displayName: Set chmod for pet binary
- script: npm run package
displayName: Build extension
tsa:
config:
areaPath: 'Pylance'
serviceTreeID: 'e3c408e8-09e7-404f-a9af-22b4ac3807a3'
enabled: true
Loading
Loading