diff --git a/.github/workflows/windows-test.yml b/.github/workflows/windows-test.yml index 170fade2d..5a079a399 100644 --- a/.github/workflows/windows-test.yml +++ b/.github/workflows/windows-test.yml @@ -38,7 +38,7 @@ jobs: - name: Set up the environment run: cmd.exe /c "powershell .\tools\metacall-environment.ps1 $Env:METACALL_INSTALL_OPTIONS" env: - METACALL_INSTALL_OPTIONS: python # nodejs ruby # netcore5 typescript file rpc wasm java c cobol rust rapidjson funchook swig pack # clangformat v8rep51 coverage + METACALL_INSTALL_OPTIONS: python nodejs # ruby # netcore5 typescript file rpc wasm java c cobol rust rapidjson funchook swig pack # clangformat v8rep51 coverage - name: Configure run: | @@ -47,7 +47,7 @@ jobs: cd "$METACALL_PATH\build" cmd.exe /c "powershell ..\tools\metacall-configure.ps1 $Env:METACALL_BUILD_OPTIONS" env: - METACALL_BUILD_OPTIONS: ${{ matrix.buildtype }} scripts ports tests python # nodejs ruby # netcore5 typescript file rpc wasm java c cobol rust examples dynamic install pack benchmarks # v8 coverage + METACALL_BUILD_OPTIONS: ${{ matrix.buildtype }} scripts ports tests python nodejs # ruby # netcore5 typescript file rpc wasm java c cobol rust examples dynamic install pack benchmarks # v8 coverage - name: Build working-directory: ./build diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 99ed976bf..014aa2a80 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -16,3 +16,4 @@ ketangupta34 onkardahale Akshit Garg burnerlee +Praveen Kumar \ No newline at end of file diff --git a/tools/metacall-build.ps1 b/tools/metacall-build.ps1 index 37c79ad83..2ad7b8c44 100644 --- a/tools/metacall-build.ps1 +++ b/tools/metacall-build.ps1 @@ -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) { @@ -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 $? ) {