Skip to content

Commit 33883cc

Browse files
committed
ad diagnostic information
1 parent 930fa10 commit 33883cc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release-node-bindings.yml

+24
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,30 @@ jobs:
196196
run: Get-ChildItem -Force -Recurse | Select-Object Mode, LastWriteTime, Length, FullName
197197
shell: powershell
198198

199+
- name: Diagnostic Information
200+
shell: pwsh
201+
run: |
202+
Write-Host "Node.js version and architecture:"
203+
node -p "process.arch + ' ' + process.version"
204+
205+
Write-Host "`nNODE_MODULE_VERSION:"
206+
node -p "process.versions.modules"
207+
208+
Write-Host "`nSystem Type:"
209+
systeminfo | findstr "System Type"
210+
211+
Write-Host "`nDirectory contents:"
212+
Get-ChildItem -Force -Recurse .\bindings\node | Select-Object FullName, Length, LastWriteTime
213+
214+
Write-Host "`nFile details:"
215+
Get-Item .\bindings\node\peerdas-kzg.win32-arm64-msvc.node | Select-Object *
216+
217+
Write-Host "`nTrying to load the module in Node.js REPL:"
218+
node -e "try { require('./bindings/node/peerdas-kzg.win32-arm64-msvc.node'); console.log('Module loaded successfully'); } catch (error) { console.error('Error loading module:', error.message); }"
219+
220+
Write-Host "`nChecking for missing DLLs:"
221+
Get-Content .\bindings\node\peerdas-kzg.win32-arm64-msvc.node | Select-String -Pattern "\.dll" -AllMatches | ForEach-Object { $_.Matches } | ForEach-Object { $_.Value } | Sort-Object -Unique
222+
199223
# Native testing for macOS (both Intel and ARM)
200224
- name: Test bindings (macOS)
201225
if: startsWith(matrix.settings.host, 'macos')

0 commit comments

Comments
 (0)