-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e953508
commit 3eb2e5c
Showing
2 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
setx /M KULALA_ROOT_DIR (Get-Location).Path | ||
setx /M LUAJIT_FOR_WIN_REPO \"luajit-for-win64\" | ||
setx /M LUAJIT_FOR_WIN_RELEASE \"0.0.2\" | ||
$Env:KULALA_ROOT_DIR = (Get-Location).Path | ||
|
||
if (!(Test-Path .tests)) { | ||
mkdir .tests | ||
} | ||
|
||
cd .tests | ||
|
||
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | ||
|
||
# required before add extras | ||
scoop install main/git | ||
|
||
# add for extras suggested by neovim | ||
scoop bucket add extras | ||
|
||
scoop install extras/vcredist2022 | ||
scoop install main/neovim@0.10.2 | ||
|
||
Invoke-RestMethod -Uri \"https://github.com/mistweaverco/$Env:LUAJIT_FOR_WIN_REPO/archive/refs/tags/v$Env:LUAJIT_FOR_WIN_RELEASE.zip\" -outfile luajit.zip | ||
Invoke-RestMethod -Uri https://github.com/mistweaverco/luajit-for-win64/archive/refs/tags/v0.0.2.zip -outfile luajit.zip | ||
7z x luajit.zip | ||
|
||
RM luajit.zip | ||
|
||
cd \"$Env:LUAJIT_FOR_WIN_REPO-$Env:LUAJIT_FOR_WIN_RELEASE\" | ||
cd luajit-for-win64-0.0.2 | ||
|
||
.\luajit-for-win64.cmd | ||
|
||
setx /M KULALA_LUA_DIR (Get-Location).Path | ||
$Env:KULALA_LUA_DIR = (Get-Location).Path | ||
|
||
setx /M PATH \"$Env:KULALA_LUA_DIR\tools\cmd;$Env:KULALA_LUA_DIR\tools\PortableGit\mingw64\bin;$Env:KULALA_LUA_DIR\tools\PortableGit\usr\bin;$Env:KULALA_LUA_DIR\tools\mingw\bin;$Env:KULALA_LUA_DIR\lib;$Env:KULALA_LUA_DIR\bin;$Env:APPDATA\LJ4W\LuaRocks\bin;$Env:path\" | ||
setx /M LUA_PATH \"$Env:KULALA_LUA_DIR\lua\?.lua;$Env:KULALA_LUA_DIR\lua\?\init.lua;$Env:APPDATA\luarocks\share\lua\5.1\?.lua;$Env:APPDATA\luarocks\share\lua\5.1\?\init.lua;$Env:LUA_PATH\" | ||
setx /M LUA_CPATH \"$Env:APPDATA\luarocks;$Env:APPDATA\luarocks\lib\lua\5.1\?.dll;$Env:LUA_CPATH\" | ||
$Env:PATH = "$Env:KULALA_LUA_DIR\tools\cmd;$Env:KULALA_LUA_DIR\tools\PortableGit\mingw64\bin;$Env:KULALA_LUA_DIR\tools\PortableGit\usr\bin;$Env:KULALA_LUA_DIR\tools\mingw\bin;$Env:KULALA_LUA_DIR\lib;$Env:KULALA_LUA_DIR\bin;$Env:APPDATA\LJ4W\LuaRocks\bin;$Env:PATH" | ||
$Env:LUA_PATH = "$Env:KULALA_LUA_DIR\lua\?.lua;$Env:KULALA_LUA_DIR\lua\?\init.lua;$Env:APPDATA\luarocks\share\lua\5.1\?.lua;$Env:APPDATA\luarocks\share\lua\5.1\?\init.lua;$Env:LUA_PATH" | ||
$Env:LUA_CPATH = "$Env:APPDATA\luarocks;$Env:APPDATA\luarocks\lib\lua\5.1\?.dll;$Env:LUA_CPATH" | ||
|
||
Write-Host \"Path: $Env:PATH.Split(';')\" | ||
Write-Host \"LUA_PATH: $Env:LUA_PATH.Split(';')\" | ||
Write-Host \"LUA_CPATH: $Env:LUA_CPATH.Split(';')\" | ||
Write-Host "Path" | ||
Write-Host $Env:PATH.Split(';') | ||
Write-Host "LUA_PATH" | ||
Write-Host $Env:LUA_PATH.Split(';') | ||
Write-Host "LUA_CPATH" | ||
Write-Host $Env:LUA_CPATH.Split(';') | ||
|
||
luarocks install --lua-version 5.1 busted | ||
|
||
# Persist the Environment Variables | ||
echo "PATH=$Env:Path" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "LUA_PATH=$Env:LUA_PATH" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "LUA_CPATH=$Env:LUA_CPATH" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | ||
|
||
cd $Env:KULALA_ROOT_DIR |