Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ jobs:
- job: build
displayName: Build Packages

pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux

variables:
TYPESPEC_SKIP_WEBSITE_BUILD: true # Disable docusaurus build
TYPESPEC_SKIP_VS_BUILD: true # VS extension is built in the dedicated build-vs (Windows) job

steps:
- template: /eng/tsp-core/pipelines/templates/install.yml
Expand Down Expand Up @@ -32,18 +38,11 @@ jobs:
Contents: "*.vsix"
TargetFolder: "$(Build.ArtifactStagingDirectory)/vscode-extension"

- task: CopyFiles@2
displayName: "Copy VS extension .vsix to artifact directory"
inputs:
SourceFolder: "$(Build.SourcesDirectory)/packages/typespec-vs"
Contents: "*.vsix"
TargetFolder: "$(Build.ArtifactStagingDirectory)/vs-extension"

- task: AzureCLI@2
displayName: "Publish bundled packages to package storage"
inputs:
azureSubscription: "Azure SDK Engineering System"
scriptType: batch
scriptType: bash
scriptLocation: inlineScript
inlineScript: node ./eng/tsp-core/scripts/upload-bundler-packages.js

Expand Down Expand Up @@ -74,15 +73,15 @@ jobs:
displayName: "Publish playground"
inputs:
azureSubscription: "Azure SDK Engineering System"
scriptType: batch
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch ^
--auth-mode login ^
--destination $web ^
--account-name "cadlplayground" ^
--destination-path / ^
--source "./packages/playground-website/dist/web/" ^
az storage blob upload-batch \
--auth-mode login \
--destination '$web' \
--account-name "cadlplayground" \
--destination-path / \
--source "./packages/playground-website/dist/web/" \
--overwrite

templateContext:
Expand All @@ -104,8 +103,3 @@ jobs:
path: $(Build.ArtifactStagingDirectory)/vscode-extension
artifact: vscode-extension-unsigned
displayName: Publish VSCode extension(.vsix) as pipeline artifacts

- output: pipelineArtifact
path: $(Build.ArtifactStagingDirectory)/vs-extension
artifact: vs-extension-unsigned
displayName: Publish VS extension(.vsix) as pipeline artifacts
34 changes: 34 additions & 0 deletions eng/tsp-core/pipelines/jobs/build-vs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
- job: build_vs
displayName: Build VS extension

pool:
name: $(WINDOWSPOOL)
image: $(WINDOWSVMIMAGE)
os: windows

variables:
TYPESPEC_SKIP_WEBSITE_BUILD: true # Disable docusaurus build
TYPESPEC_VS_CI_BUILD: true # Enable official Visual Studio extension build

steps:
- template: /eng/tsp-core/pipelines/templates/install.yml
parameters:
useDotNet: true

- script: pnpm -r --filter "typespec-vs..." build
displayName: Build

- task: CopyFiles@2
displayName: "Copy VS extension .vsix to artifact directory"
inputs:
SourceFolder: "$(Build.SourcesDirectory)/packages/typespec-vs"
Contents: "*.vsix"
TargetFolder: "$(Build.ArtifactStagingDirectory)/vs-extension"

templateContext:
outputs:
- output: pipelineArtifact
path: $(Build.ArtifactStagingDirectory)/vs-extension
artifact: vs-extension-unsigned
displayName: Publish VS extension(.vsix) as pipeline artifacts
8 changes: 2 additions & 6 deletions eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ extends:
dependsOn: []
displayName: Build

pool:
name: $(WINDOWSPOOL)
image: $(WINDOWSVMIMAGE)
os: windows

jobs:
- template: /eng/tsp-core/pipelines/jobs/build-for-publish.yml@self
- template: /eng/tsp-core/pipelines/jobs/build-packages.yml@self
- template: /eng/tsp-core/pipelines/jobs/build-vs.yml@self
- template: /eng/tsp-core/pipelines/jobs/cli/build-tsp-cli-all.yml@self
- template: /eng/tsp-core/pipelines/jobs/e2e.yml@self
parameters:
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-vs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "typespec-vs",
"private": true,
"author": "Microsoft Corporation",
"version": "1.13.0",
"description": "TypeSpec Language Support for Visual Studio",
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "typespec-vscode",
"private": true,
"version": "1.13.0",
"author": "Microsoft Corporation",
"description": "TypeSpec language support for VS Code",
Expand Down
Loading