Engineering - Add sample pipeline (#5)
* Add sample pipeline * Add build platforms
This commit is contained in:
Родитель
37a2523b99
Коммит
e50d8e7300
|
@ -7,5 +7,6 @@ vsc-extension-quickstart.md
|
|||
**/*.map
|
||||
**/.eslintrc.json
|
||||
.github
|
||||
build/**
|
||||
node_modules
|
||||
!node_modules/vscode-ripgrep
|
|
@ -0,0 +1,61 @@
|
|||
name: $(Date:yyyyMMdd)$(Rev:.r)
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
pr: none
|
||||
|
||||
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/stable.yml@templates
|
||||
parameters:
|
||||
buildPlatforms:
|
||||
- name: Linux
|
||||
vsceTarget: linux-alpine
|
||||
npmConfigArch: x64
|
||||
- name: Linux
|
||||
vsceTarget: linux-arm64
|
||||
npmConfigArch: arm64
|
||||
- name: Linux
|
||||
vsceTarget: linux-armhf
|
||||
npmConfigArch: arm
|
||||
- name: Linux
|
||||
vsceTarget: linux-x64
|
||||
npmConfigArch: x64
|
||||
- name: MacOS
|
||||
vsceTarget: darwin-arm64
|
||||
npmConfigArch: arm64
|
||||
- name: MacOS
|
||||
vsceTarget: darwin-x64
|
||||
npmConfigArch: x64
|
||||
- name: Windows
|
||||
vsceTarget: win32-arm64
|
||||
npmConfigArch: arm
|
||||
- name: Windows
|
||||
vsceTarget: win32-ia32
|
||||
npmConfigArch: ia32
|
||||
- name: Windows
|
||||
vsceTarget: win32-x64
|
||||
npmConfigArch: x64
|
||||
|
||||
buildSteps:
|
||||
- script: npm ci
|
||||
env:
|
||||
npm_config_arch: ${{ parameters.npmConfigArch }}
|
||||
displayName: Install dependencies
|
||||
|
||||
publishExtension: ${{ parameters.publishExtension }}
|
Загрузка…
Ссылка в новой задаче