diff options
Diffstat (limited to 'ci/build.ps1')
| -rw-r--r-- | ci/build.ps1 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/ci/build.ps1 b/ci/build.ps1 index 524dabdf3e..b2a4c1ec2a 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -29,6 +29,25 @@ function exitIfFailed() { } } +# https://github.com/lukesampson/scoop#installation +$scoop = (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') +& { + Set-StrictMode -Off + Invoke-Expression $scoop +} + +scoop install nodejs-lts perl +node --version +npm.cmd --version +perl --version +cpanm.bat --version + +cpanm.bat -n Neovim::Ext +if ($LastExitCode -ne 0) { + Get-Content -Path "$env:USERPROFILE\.cpanm\build.log" +} +perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'; exitIfFailed + if (-Not (Test-Path -PathType container $env:DEPS_BUILD_DIR)) { write-host "cache dir not found: $($env:DEPS_BUILD_DIR)" mkdir $env:DEPS_BUILD_DIR @@ -57,7 +76,7 @@ if ($compiler -eq 'MINGW') { # in MSYS2, but we cannot build inside the MSYS2 shell. $cmakeGenerator = 'Ninja' $cmakeGeneratorArgs = '-v' - $mingwPackages = @('ninja', 'cmake', 'perl', 'diffutils').ForEach({ + $mingwPackages = @('ninja', 'cmake', 'diffutils').ForEach({ "mingw-w64-$arch-$_" }) @@ -115,7 +134,6 @@ if (-not $NoTests) { if (-Not (Test-Path -PathType Leaf "$env:TREE_SITTER_DIR\bin\c.dll")) { exit 1 } - } if ($compiler -eq 'MSVC') { |