Skip to content

Commit

Permalink
Fix NodeJS tests in GitHub CI (metacall#364)
Browse files Browse the repository at this point in the history
* adds cstdlib header in node port

* updated Contributors.md

* fix include

* copy dependencies for windows test

* adds metacall port to node loader bootstrap package.json

* add wasm to ci

* Revert "add wasm to ci"

This reverts commit d1de1b9.

* Update package.json

Co-authored-by: Vicente Eduardo Ferrer Garcia <[email protected]>
  • Loading branch information
pkspyder007 and viferga authored Jan 12, 2023
1 parent 42d24b1 commit 8108bf2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ ketangupta34 <[email protected]>
onkardahale <[email protected]>
Akshit Garg <[email protected]>
burnerlee <[email protected]>
Praveen Kumar <[email protected]>
17 changes: 14 additions & 3 deletions tools/metacall-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ function sub-build {

# Prerequisites
$files = @(
"..\runtimes\nodejs\lib\libnode.dll",
"..\runtimes\nodejs\lib\libnode.lib",
"..\runtimes\ruby\bin\x64-vcruntime140-ruby310.dll"
".\runtimes\nodejs\lib\libnode.dll",
".\runtimes\nodejs\lib\libnode.lib",
".\runtimes\ruby\bin\x64-vcruntime140-ruby310.dll",
".\source\loaders\node_loader\bootstrap\acorn",
".\source\loaders\node_loader\bootstrap\acorn.cmd",
".\source\loaders\node_loader\bootstrap\acorn.ps1"
)

ForEach ($file in $files) {
Expand All @@ -68,6 +71,14 @@ function sub-build {
}
}

# copy scripts and node_module for test
$nmPath = ".\source\loaders\node_loader\bootstrap\node_modules"
$scriptsPath = ".\scripts"

robocopy /e "$nmPath" ".\$BUILD_TYPE\node_modules" /NFL /NDL /NJH /NJS /NC /NS /NP
robocopy /e "$scriptsPath" ".\$BUILD_TYPE\scripts" /NFL /NDL /NJH /NJS /NC /NS /NP


ctest "-j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)" --output-on-failure -C $BUILD_TYPE

if ( -not $? ) {
Expand Down

0 comments on commit 8108bf2

Please sign in to comment.