Skip to content

Commit 0011ba8

Browse files
committed
Enhance development dependency installation and output verification in Copilot setup steps
1 parent 1f4c9aa commit 0011ba8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ jobs:
112112
echo "::endgroup::"
113113
114114
echo "::group::Installing additional development dependencies..."
115-
echo "Installing development dependencies (libc6-dev, libssl-dev)..."
116-
sudo apt-get install -y libc6-dev libssl-dev
115+
echo "Installing development dependencies..."
116+
sudo apt-get install -y libc6-dev libssl-dev tree
117117
echo "Development dependencies installed successfully"
118118
echo "::endgroup::"
119119
@@ -199,10 +199,16 @@ jobs:
199199
./build.ps1 -Tasks 'build' -ErrorAction Stop
200200
201201
# Verify build output
202-
if (Test-Path -Path "output/builtModule/$env:MODULE_NAME")
202+
$builtPath = "output/builtModule/$env:MODULE_NAME"
203+
if (Test-Path -Path $builtPath)
203204
{
204-
Write-Host "Module built successfully at: output/builtModule/$env:MODULE_NAME"
205-
Get-ChildItem -Path "output/builtModule/$env:MODULE_NAME" -Recurse | Select-Object Name, Length | Format-Table
205+
Write-Host "Module built successfully at: $builtPath"
206+
# Show files with paths relative to the built module base path using `tree` (run directly in PowerShell)
207+
$base = (Resolve-Path -Path $builtPath).ProviderPath
208+
Write-Host "Files under $base (relative paths):"
209+
210+
# Run tree directly and strip leading './' from its output
211+
tree --noreport $builtPath
206212
}
207213
else
208214
{

0 commit comments

Comments
 (0)