-
Notifications
You must be signed in to change notification settings - Fork 248
520 lines (470 loc) · 21.7 KB
/
Copy pathverify-devpack-scripts.yml
File metadata and controls
520 lines (470 loc) · 21.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
name: Verify DevPack scripts
on:
release:
types: [published]
workflow_dispatch:
inputs:
release_tag:
description: "DevPack release tag to verify"
required: true
type: string
install_source:
description: "Installation source"
required: true
default: release
type: choice
options:
- release
- aka
- brew
telemetry:
description: "Send installer telemetry during this validation run"
required: true
default: false
type: boolean
permissions:
contents: read
concurrency:
group: verify-devpack-scripts-${{ github.event.release.tag_name || inputs.release_tag }}-${{ inputs.install_source || 'release' }}-telemetry-${{ inputs.telemetry || false }}
cancel-in-progress: false
env:
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }}
INSTALL_SOURCE: ${{ inputs.install_source || 'release' }}
TELEMETRY_ENABLED: ${{ inputs.telemetry || false }}
FOUNDRY_DEVPACK_COLLECT_TELEMETRY: ${{ inputs.telemetry && '1' || '0' }}
GITHUB_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
jobs:
windows:
if: ${{ (startsWith(github.event.release.tag_name, 'devpack-installer-') || startsWith(inputs.release_tag, 'devpack-installer-')) && (github.event_name == 'release' || inputs.install_source != 'brew') }}
name: windows ${{ matrix.platform.arch }} ${{ matrix.scenario }} (${{ inputs.install_source || 'release' }}, telemetry=${{ inputs.telemetry || false }})
runs-on: ${{ matrix.platform.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
scenario: [baseline, no-az, with-code]
platform:
- { os: windows-latest, arch: x64 }
- { os: windows-11-arm, arch: arm64 }
steps:
- name: Verify release tag
shell: pwsh
run: |
if ($env:RELEASE_TAG -notmatch '^devpack-installer-[0-9A-Za-z][0-9A-Za-z.-]*$') {
throw "invalid release tag: $env:RELEASE_TAG"
}
$expected = if ($env:TELEMETRY_ENABLED -eq 'true') { '1' } else { '0' }
if ($env:FOUNDRY_DEVPACK_COLLECT_TELEMETRY -ne $expected) {
throw 'telemetry input was not mapped to the installer environment correctly'
}
Write-Host "Testing $env:RELEASE_TAG from $env:INSTALL_SOURCE on windows ${{ matrix.platform.arch }} (${{ matrix.scenario }}), telemetry=$env:TELEMETRY_ENABLED"
- name: Ensure winget
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$links = Join-Path $env:LOCALAPPDATA 'Microsoft\WinGet\Links'
if (-not (Get-Command winget -ErrorAction SilentlyContinue)) {
Install-PSResource -Name Microsoft.WinGet.Client -Repository PSGallery -TrustRepository -Reinstall
Import-Module Microsoft.WinGet.Client
Repair-WinGetPackageManager -Latest -Force
$env:Path = "$links;$env:Path"
Add-Content -Path $env:GITHUB_PATH -Value $links
}
winget --version
- name: Remove Azure CLI
if: matrix.scenario == 'no-az'
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
winget uninstall --silent --disable-interactivity --accept-source-agreements --id Microsoft.AzureCLI
$machine = [Environment]::GetEnvironmentVariable('Path', 'Machine')
$user = [Environment]::GetEnvironmentVariable('Path', 'User')
$env:Path = "$machine;$user"
if (Get-Command az -ErrorAction SilentlyContinue) {
throw 'Azure CLI is still available after removal'
}
- name: Install VS Code and Copilot CLI
if: matrix.scenario == 'with-code'
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
winget install --silent --disable-interactivity `
--accept-package-agreements --accept-source-agreements `
--id Microsoft.VisualStudioCode
winget install --silent --disable-interactivity `
--accept-package-agreements --accept-source-agreements `
--id GitHub.Copilot
$vscodeBin = Join-Path $env:LOCALAPPDATA 'Programs\Microsoft VS Code\bin'
Add-Content -Path $env:GITHUB_PATH -Value $vscodeBin
$copilotPackage = Get-ChildItem "$env:LOCALAPPDATA\Microsoft\WinGet\Packages" `
-Directory -Filter 'GitHub.Copilot_*' -ErrorAction SilentlyContinue | Select-Object -First 1
if (-not $copilotPackage) { throw 'GitHub Copilot CLI package directory not found' }
Add-Content -Path $env:GITHUB_PATH -Value $copilotPackage.FullName
- name: Confirm Copilot CLI is absent
if: matrix.scenario != 'with-code'
shell: pwsh
run: |
if (Get-Command copilot -ErrorAction SilentlyContinue) {
throw 'Copilot CLI unexpectedly present; Canvas skip path cannot be tested'
}
- name: Download and verify signed bootstrap
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$script = Join-Path $env:RUNNER_TEMP 'foundry-devpack.ps1'
$url = if ($env:INSTALL_SOURCE -eq 'aka') {
'https://aka.ms/foundry-devpack-install.ps1'
} else {
"https://github.com/${{ github.repository }}/releases/download/$env:RELEASE_TAG/foundry-devpack.ps1"
}
Invoke-WebRequest $url -OutFile $script -UseBasicParsing
$content = Get-Content $script -Raw
if ($content -notmatch "(?m)^\`$releaseTag\s*=\s*'([^']+)'") {
throw 'release tag not found in PowerShell bootstrap'
}
if ($Matches[1] -ne $env:RELEASE_TAG) {
throw "PowerShell bootstrap targets $($Matches[1]), expected $env:RELEASE_TAG"
}
$signature = Get-AuthenticodeSignature $script
if ($signature.Status -ne 'Valid') {
throw "invalid PowerShell signature: $($signature.Status) $($signature.StatusMessage)"
}
if ($signature.SignerCertificate.Subject -notlike 'CN=Microsoft Corporation,*') {
throw "unexpected PowerShell signer: $($signature.SignerCertificate.Subject)"
}
$store = [Security.Cryptography.X509Certificates.X509Store]::new('TrustedPublisher', 'CurrentUser')
$store.Open([Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
try {
$wasTrusted = $store.Certificates.Find(
[Security.Cryptography.X509Certificates.X509FindType]::FindByThumbprint,
$signature.SignerCertificate.Thumbprint,
$false).Count -gt 0
if (-not $wasTrusted) { $store.Add($signature.SignerCertificate) }
}
finally {
$store.Dispose()
}
"DEVPACK_SCRIPT=$script" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"SIGNER_THUMBPRINT=$($signature.SignerCertificate.Thumbprint)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"SIGNER_WAS_TRUSTED=$wasTrusted" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install through PowerShell bootstrap
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$temp = Join-Path $env:RUNNER_TEMP 'devpack-bootstrap-temp'
New-Item -ItemType Directory -Path $temp -Force | Out-Null
$env:TEMP = $temp
$env:TMP = $temp
if ($env:INSTALL_SOURCE -eq 'aka') {
& powershell.exe -ExecutionPolicy AllSigned -Command `
"Invoke-RestMethod 'https://aka.ms/foundry-devpack-install.ps1' | Invoke-Expression"
} else {
& powershell.exe -NoProfile -NonInteractive -ExecutionPolicy AllSigned `
-File $env:DEVPACK_SCRIPT --verbose
}
if ($LASTEXITCODE -ne 0) { throw "PowerShell bootstrap exited $LASTEXITCODE" }
$leaked = @(Get-ChildItem $temp -Directory -Filter 'foundry-devpack-*' -ErrorAction SilentlyContinue)
if ($leaked.Count) {
throw "bootstrap left temporary directories: $($leaked.FullName -join ', ')"
}
- name: Verify installed components
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$machine = [Environment]::GetEnvironmentVariable('Path', 'Machine')
$user = [Environment]::GetEnvironmentVariable('Path', 'User')
$env:Path = "$machine;$user;$env:Path"
az version | Out-Host
azd version | Out-Host
$extensions = azd ext list --installed -o json | Out-String
$extensions | Write-Host
if ($extensions -notmatch 'microsoft\.foundry') { throw 'microsoft.foundry azd extension not installed' }
if ($extensions -notmatch 'azure\.ai\.agents') { throw 'azure.ai.agents azd extension not installed' }
$skill = Join-Path $env:USERPROFILE '.agents\skills\microsoft-foundry\SKILL.md'
if (-not (Test-Path $skill -PathType Leaf)) { throw "microsoft-foundry skill not found at $skill" }
- name: Verify VS Code extension and Copilot plugin
if: matrix.scenario == 'with-code'
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$machine = [Environment]::GetEnvironmentVariable('Path', 'Machine')
$user = [Environment]::GetEnvironmentVariable('Path', 'User')
$vscodeBin = Join-Path $env:LOCALAPPDATA 'Programs\Microsoft VS Code\bin'
$env:Path = "$vscodeBin;$machine;$user;$env:Path"
if (-not (code --list-extensions | Select-String -Quiet -Pattern 'ms-windows-ai-studio.windows-ai-studio')) {
throw 'Foundry Toolkit VS Code extension not installed'
}
copilot plugin list --no-color | Out-Host
if (-not (copilot plugin list --no-color | Select-String -Quiet -Pattern 'microsoft-foundry')) {
throw 'Foundry Copilot plugin not installed'
}
- name: Verify ARP and uninstall
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft.FoundryDevPack'
if (-not (Test-Path $key)) { throw 'Foundry DevPack ARP entry not found' }
$entry = Get-ItemProperty $key
if (-not (Test-Path $entry.InstallLocation -PathType Container)) { throw 'ARP install location not found' }
if (-not (Test-Path $entry.DisplayIcon -PathType Leaf)) { throw 'persisted installer not found' }
Write-Host "ARP: $($entry.DisplayName) $($entry.DisplayVersion)"
& $entry.DisplayIcon uninstall
if ($LASTEXITCODE -ne 0) { throw "uninstall exited $LASTEXITCODE" }
if (Test-Path $key) { throw 'ARP entry still present after uninstall' }
- name: Remove trusted publisher and bootstrap
if: always()
shell: pwsh
run: |
if ($env:SIGNER_THUMBPRINT -and $env:SIGNER_WAS_TRUSTED -eq 'False') {
$store = [Security.Cryptography.X509Certificates.X509Store]::new('TrustedPublisher', 'CurrentUser')
$store.Open([Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
try {
$certificates = $store.Certificates.Find(
[Security.Cryptography.X509Certificates.X509FindType]::FindByThumbprint,
$env:SIGNER_THUMBPRINT,
$false)
foreach ($certificate in $certificates) { $store.Remove($certificate) }
}
finally {
$store.Dispose()
}
}
Remove-Item $env:DEVPACK_SCRIPT -Force -ErrorAction SilentlyContinue
linux:
if: ${{ (startsWith(github.event.release.tag_name, 'devpack-installer-') || startsWith(inputs.release_tag, 'devpack-installer-')) && (github.event_name == 'release' || inputs.install_source != 'brew') }}
name: linux ${{ matrix.platform.arch }} ${{ matrix.scenario }} (${{ inputs.install_source || 'release' }}, telemetry=${{ inputs.telemetry || false }})
runs-on: ${{ matrix.platform.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
scenario: [baseline, no-az, with-code]
platform:
- { os: ubuntu-latest, arch: x64 }
- { os: ubuntu-24.04-arm, arch: arm64 }
steps:
- name: Verify release tag
shell: bash
run: |
set -euo pipefail
[[ "$RELEASE_TAG" =~ ^devpack-installer-[0-9A-Za-z][0-9A-Za-z.-]*$ ]]
expected=0
if [ "$TELEMETRY_ENABLED" = "true" ]; then expected=1; fi
[ "$FOUNDRY_DEVPACK_COLLECT_TELEMETRY" = "$expected" ]
echo "Testing $RELEASE_TAG from $INSTALL_SOURCE on linux ${{ matrix.platform.arch }} (${{ matrix.scenario }}), telemetry=$TELEMETRY_ENABLED"
- name: Remove Azure CLI
if: matrix.scenario == 'no-az'
shell: bash
run: |
set -euxo pipefail
sudo apt-get remove -y azure-cli || true
if command -v az >/dev/null 2>&1; then
echo 'Azure CLI is still available after removal' >&2
exit 1
fi
- name: Install VS Code and Copilot CLI
if: matrix.scenario == 'with-code'
shell: bash
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install -y wget gpg apt-transport-https
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/packages.microsoft.gpg >/dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt-get update
sudo apt-get install -y code
curl -fsSL https://gh.io/copilot-install | bash
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Confirm Copilot CLI is absent
if: matrix.scenario != 'with-code'
shell: bash
run: |
if command -v copilot >/dev/null 2>&1; then
echo 'Copilot CLI unexpectedly present; Canvas skip path cannot be tested' >&2
exit 1
fi
- name: Download and verify bootstrap syntax
shell: bash
run: |
set -euo pipefail
script="$RUNNER_TEMP/foundry-devpack.sh"
if [ "$INSTALL_SOURCE" = "aka" ]; then
url="https://aka.ms/foundry-devpack-install.sh"
else
url="https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}/foundry-devpack.sh"
fi
curl -fsSL "$url" -o "$script"
bash -n "$script"
grep -Fx "release_tag=\"$RELEASE_TAG\"" "$script"
echo "DEVPACK_SCRIPT=$script" >> "$GITHUB_ENV"
- name: Install through shell bootstrap
shell: bash
run: |
set -euo pipefail
temp="$RUNNER_TEMP/devpack-bootstrap-temp"
mkdir -p "$temp"
export TMPDIR="$temp"
if [ "$INSTALL_SOURCE" = "aka" ]; then
curl -fsSL https://aka.ms/foundry-devpack-install.sh | bash
else
bash "$DEVPACK_SCRIPT" --verbose
fi
if find "$temp" -mindepth 1 -maxdepth 1 -type d -name 'foundry-devpack-*' -print -quit | grep -q .; then
echo "error: bootstrap left temporary directories under $temp" >&2
find "$temp" -mindepth 1 -maxdepth 1 -type d -name 'foundry-devpack-*' -print >&2
exit 1
fi
- name: Verify installed components
shell: bash
run: |
set -euxo pipefail
export PATH="$HOME/.local/bin:$PATH"
az version
azd version
azd ext list --installed -o json | tee "$RUNNER_TEMP/azd-extensions.json"
grep -qi 'microsoft\.foundry' "$RUNNER_TEMP/azd-extensions.json"
grep -qi 'azure\.ai\.agents' "$RUNNER_TEMP/azd-extensions.json"
test -f "$HOME/.agents/skills/microsoft-foundry/SKILL.md"
- name: Verify VS Code extension and Copilot plugin
if: matrix.scenario == 'with-code'
shell: bash
run: |
set -euxo pipefail
export PATH="$HOME/.local/bin:$PATH"
code --list-extensions | grep -qi 'ms-windows-ai-studio.windows-ai-studio'
copilot plugin list --no-color | tee "$RUNNER_TEMP/copilot-plugins.txt"
grep -qi 'microsoft-foundry' "$RUNNER_TEMP/copilot-plugins.txt"
- name: Remove bootstrap
if: always()
shell: bash
run: rm -f "$DEVPACK_SCRIPT"
macos:
if: ${{ startsWith(github.event.release.tag_name, 'devpack-installer-') || startsWith(inputs.release_tag, 'devpack-installer-') }}
name: macos ${{ matrix.platform.arch }} ${{ matrix.scenario }} (${{ inputs.install_source || 'release' }}, telemetry=${{ inputs.telemetry || false }})
runs-on: ${{ matrix.platform.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
scenario: [baseline, no-az, with-code]
platform:
- { os: macos-15-intel, arch: x64 }
- { os: macos-latest, arch: arm64 }
env:
HOMEBREW_NO_AUTO_UPDATE: "1"
HOMEBREW_NO_ANALYTICS: "1"
steps:
- name: Verify release tag
shell: bash
run: |
set -euo pipefail
[[ "$RELEASE_TAG" =~ ^devpack-installer-[0-9A-Za-z][0-9A-Za-z.-]*$ ]]
expected=0
if [ "$TELEMETRY_ENABLED" = "true" ]; then expected=1; fi
[ "$FOUNDRY_DEVPACK_COLLECT_TELEMETRY" = "$expected" ]
echo "Testing $RELEASE_TAG from $INSTALL_SOURCE on macos ${{ matrix.platform.arch }} (${{ matrix.scenario }}), telemetry=$TELEMETRY_ENABLED"
- name: Remove Azure CLI
if: matrix.scenario == 'no-az'
shell: bash
run: |
set -euxo pipefail
brew uninstall --ignore-dependencies azure-cli 2>/dev/null || true
if command -v az >/dev/null 2>&1; then
echo 'Azure CLI is still available after removal' >&2
exit 1
fi
- name: Install VS Code and Copilot CLI
if: matrix.scenario == 'with-code'
shell: bash
run: |
set -euxo pipefail
brew install --cask visual-studio-code
brew install --cask copilot-cli
sudo mkdir -p /usr/local/bin
sudo ln -sf '/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' /usr/local/bin/code
- name: Confirm Copilot CLI is absent
if: matrix.scenario != 'with-code'
shell: bash
run: |
if command -v copilot >/dev/null 2>&1; then
echo 'Copilot CLI unexpectedly present; Canvas skip path cannot be tested' >&2
exit 1
fi
- name: Download and verify bootstrap syntax
if: env.INSTALL_SOURCE != 'brew'
shell: bash
run: |
set -euo pipefail
script="$RUNNER_TEMP/foundry-devpack.sh"
if [ "$INSTALL_SOURCE" = "aka" ]; then
url="https://aka.ms/foundry-devpack-install.sh"
else
url="https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}/foundry-devpack.sh"
fi
curl -fsSL "$url" -o "$script"
bash -n "$script"
grep -Fx "release_tag=\"$RELEASE_TAG\"" "$script"
echo "DEVPACK_SCRIPT=$script" >> "$GITHUB_ENV"
- name: Install DevPack
shell: bash
run: |
set -euo pipefail
temp="$RUNNER_TEMP/devpack-bootstrap-temp"
mkdir -p "$temp"
export TMPDIR="$temp"
case "$INSTALL_SOURCE" in
aka)
curl -fsSL https://aka.ms/foundry-devpack-install.sh | bash
;;
brew)
brew untap microsoft/foundry 2>/dev/null || true
brew install --cask microsoft/foundry/devpack && foundry-devpack install
expected_version="${RELEASE_TAG#devpack-installer-}"
foundry-devpack --version | grep -F "$expected_version"
;;
release)
bash "$DEVPACK_SCRIPT" --verbose
;;
*)
echo "error: unsupported install source: $INSTALL_SOURCE" >&2
exit 1
;;
esac
if find "$temp" -mindepth 1 -maxdepth 1 -type d -name 'foundry-devpack-*' -print -quit | grep -q .; then
echo "error: bootstrap left temporary directories under $temp" >&2
find "$temp" -mindepth 1 -maxdepth 1 -type d -name 'foundry-devpack-*' -print >&2
exit 1
fi
- name: Verify installed components
shell: bash
run: |
set -euxo pipefail
export PATH="$HOME/.local/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
az version
azd version
azd ext list --installed -o json | tee "$RUNNER_TEMP/azd-extensions.json"
grep -qi 'microsoft\.foundry' "$RUNNER_TEMP/azd-extensions.json"
grep -qi 'azure\.ai\.agents' "$RUNNER_TEMP/azd-extensions.json"
test -f "$HOME/.agents/skills/microsoft-foundry/SKILL.md"
- name: Verify VS Code extension and Copilot plugin
if: matrix.scenario == 'with-code'
shell: bash
run: |
set -euxo pipefail
export PATH="$HOME/.local/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
code --list-extensions | grep -qi 'ms-windows-ai-studio.windows-ai-studio'
copilot plugin list --no-color | tee "$RUNNER_TEMP/copilot-plugins.txt"
grep -qi 'microsoft-foundry' "$RUNNER_TEMP/copilot-plugins.txt"
- name: Uninstall Homebrew cask
if: env.INSTALL_SOURCE == 'brew'
shell: bash
run: |
set -euxo pipefail
brew uninstall --zap --cask microsoft/foundry/devpack
! command -v foundry-devpack
test -f "$HOME/.agents/skills/microsoft-foundry/SKILL.md"
- name: Remove bootstrap
if: always() && env.INSTALL_SOURCE != 'brew'
shell: bash
run: rm -f "$DEVPACK_SCRIPT"