@@ -107,23 +107,19 @@ jobs:
107107
108108 - name : Run unit tests
109109 run : |
110- dotnet test Tests/PowerShell.MCP.Tests.csproj -c Release --no-restore - v normal
110+ dotnet test Tests/PowerShell.MCP.Tests.csproj -c Release -v normal
111111
112112 - name : Setup module directory (Windows)
113113 if : runner.os == 'Windows'
114114 shell : pwsh
115115 run : |
116116 $modulePath = "$env:USERPROFILE\Documents\PowerShell\Modules\PowerShell.MCP"
117117 New-Item -Path "$modulePath\bin\${{ matrix.rid }}" -ItemType Directory -Force | Out-Null
118- New-Item -Path "$modulePath\lib\net8.0" -ItemType Directory -Force | Out-Null
119- New-Item -Path "$modulePath\lib\net9.0" -ItemType Directory -Force | Out-Null
120118
121- Copy-Item "PowerShell.MCP\bin\Release\net8.0\PowerShell.MCP.dll" -Destination " $modulePath\lib\net8.0"
122- Copy-Item "PowerShell.MCP\bin\Release\net9 .0\PowerShell.MCP .dll" -Destination " $modulePath\lib\net9.0"
119+ Copy-Item "PowerShell.MCP\bin\Release\net8.0\PowerShell.MCP.dll" -Destination $modulePath
120+ Copy-Item "PowerShell.MCP\bin\Release\net8 .0\Ude.NetStandard .dll" -Destination $modulePath
123121 Copy-Item "Staging\PowerShell.MCP.psd1" -Destination $modulePath
124122 Copy-Item "Staging\PowerShell.MCP.psm1" -Destination $modulePath
125- # Ude.NetStandard.dll is netstandard2.0 — single copy at module root
126- Copy-Item "PowerShell.MCP\bin\Release\net9.0\Ude.NetStandard.dll" -Destination $modulePath
127123 Copy-Item "PowerShell.MCP.Proxy\bin\Release\net9.0\${{ matrix.rid }}\publish\${{ matrix.exe }}" -Destination "$modulePath\bin\${{ matrix.rid }}"
128124
129125 Write-Host "Module files:"
@@ -134,15 +130,11 @@ jobs:
134130 run : |
135131 MODULE_PATH="$HOME/.local/share/powershell/Modules/PowerShell.MCP"
136132 mkdir -p "$MODULE_PATH/bin/${{ matrix.rid }}"
137- mkdir -p "$MODULE_PATH/lib/net8.0"
138- mkdir -p "$MODULE_PATH/lib/net9.0"
139133
140- cp PowerShell.MCP/bin/Release/net8.0/PowerShell.MCP.dll "$MODULE_PATH/lib/net8.0/ "
141- cp PowerShell.MCP/bin/Release/net9 .0/PowerShell.MCP .dll "$MODULE_PATH/lib/net9.0 /"
134+ cp PowerShell.MCP/bin/Release/net8.0/PowerShell.MCP.dll "$MODULE_PATH/"
135+ cp PowerShell.MCP/bin/Release/net8 .0/Ude.NetStandard .dll "$MODULE_PATH/"
142136 cp Staging/PowerShell.MCP.psd1 "$MODULE_PATH/"
143137 cp Staging/PowerShell.MCP.psm1 "$MODULE_PATH/"
144- # Ude.NetStandard.dll is netstandard2.0 — single copy at module root
145- cp PowerShell.MCP/bin/Release/net9.0/Ude.NetStandard.dll "$MODULE_PATH/"
146138 cp "PowerShell.MCP.Proxy/bin/Release/net9.0/${{ matrix.rid }}/publish/${{ matrix.exe }}" "$MODULE_PATH/bin/${{ matrix.rid }}/"
147139 chmod +x "$MODULE_PATH/bin/${{ matrix.rid }}/${{ matrix.exe }}"
148140
0 commit comments