Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 17df3a7

Browse files
committed
update ci
1 parent cae322c commit 17df3a7

2 files changed

Lines changed: 45 additions & 22 deletions

File tree

eng/pipelines/templates/jobs/build-vscode.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@ jobs:
3030
steps:
3131
- checkout: self
3232

33+
# Download the signed MCP server binaries for this OS
34+
- download: current
35+
artifact: $(PipelineArtifactName)_signed
36+
displayName: "Download signed MCP server binaries"
37+
38+
# Copy binaries to ext/vscode/server/<os>
39+
- ${{ if eq(parameters.OSName, 'windows') }}:
40+
- powershell: |
41+
$dest = "ext/vscode/server/windows"
42+
New-Item -ItemType Directory -Force -Path $dest
43+
Copy-Item -Path "$(Pipeline.Workspace)/$(PipelineArtifactName)_signed/*" -Destination $dest -Recurse -Force
44+
displayName: "Copy signed MCP server binaries to VSIX (Windows)"
45+
- ${{ if eq(parameters.OSName, 'linux') }}:
46+
- bash: |
47+
mkdir -p ext/vscode/server/linux
48+
cp -r $(Pipeline.Workspace)/$(PipelineArtifactName)_signed/* ext/vscode/server/linux/
49+
displayName: "Copy signed MCP server binaries to VSIX (Linux)"
50+
- ${{ if eq(parameters.OSName, 'macOS') }}:
51+
- bash: |
52+
mkdir -p ext/vscode/server/macos
53+
cp -r $(Pipeline.Workspace)/$(PipelineArtifactName)_signed/* ext/vscode/server/macos/
54+
displayName: "Copy signed MCP server binaries to VSIX (macOS)"
55+
3356
# --- VS Code Extension Packaging Steps ---
3457
- task: NodeTool@0
3558
displayName: "Use Node.js 20.x"

ext/vscode/ci-package.ps1

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ param(
44
$PackageArguments
55
)
66

7-
# Define OS targets and corresponding RIDs
8-
$osMap = @{
9-
"windows_x64" = "win-x64"
10-
"windows_arm64" = "win-arm64"
11-
"linux_x64" = "linux-x64"
12-
"linux_arm64" = "linux-arm64"
13-
"macOS_x64" = "osx-x64"
14-
"macOS_arm64" = "osx-arm64"
15-
}
7+
# # Define OS targets and corresponding RIDs
8+
# $osMap = @{
9+
# "windows_x64" = "win-x64"
10+
# "windows_arm64" = "win-arm64"
11+
# "linux_x64" = "linux-x64"
12+
# "linux_arm64" = "linux-arm64"
13+
# "macOS_x64" = "osx-x64"
14+
# "macOS_arm64" = "osx-arm64"
15+
# }
1616

17-
if (-not $osMap.ContainsKey($os)) {
18-
Write-Error "Unknown OS: $os. Valid options: $($osMap.Keys -join ', ')"
19-
exit 1
20-
}
21-
# Define project and destination base paths
22-
$projectPath = Resolve-Path "../../src"
23-
$dstBase = Join-Path $PSScriptRoot "server"
17+
# if (-not $osMap.ContainsKey($os)) {
18+
# Write-Error "Unknown OS: $os. Valid options: $($osMap.Keys -join ', ')"
19+
# exit 1
20+
# }
21+
# # Define project and destination base paths
22+
# $projectPath = Resolve-Path "../../src"
23+
# $dstBase = Join-Path $PSScriptRoot "server"
2424

2525

26-
# Build and package for the specified OS only
27-
$dstDir = Join-Path $dstBase $os
28-
if (!(Test-Path $dstDir)) {
29-
New-Item -ItemType Directory -Path $dstDir | Out-Null
30-
}
31-
dotnet publish $projectPath -c Release -r $($osMap[$os]) --self-contained true -o $dstDir
26+
# # Build and package for the specified OS only
27+
# $dstDir = Join-Path $dstBase $os
28+
# if (!(Test-Path $dstDir)) {
29+
# New-Item -ItemType Directory -Path $dstDir | Out-Null
30+
# }
31+
# dotnet publish $projectPath -c Release -r $($osMap[$os]) --self-contained true -o $dstDir
3232

3333
# Run the npm packaging step
3434
Invoke-Expression "npm run ci-package -- $PackageArguments"

0 commit comments

Comments
 (0)