diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index e134566..89b6628 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -18,7 +18,7 @@ jobs: with: path: | .tests - ~\scoop\apps + ~\scoop ~\AppData\Roaming\LJ4W ~\AppData\Roaming\luarocks key: ${{ runner.os }}-tests @@ -30,7 +30,7 @@ jobs: with: path: | .tests - ~\scoop\apps + ~\scoop ~\AppData\Roaming\LJ4W ~\AppData\Roaming\luarocks key: ${{ runner.os }}-tests diff --git a/scripts/install-ci-test-requirements.ps1 b/scripts/install-ci-test-requirements.ps1 index b3df40b..6e0841c 100644 --- a/scripts/install-ci-test-requirements.ps1 +++ b/scripts/install-ci-test-requirements.ps1 @@ -7,19 +7,21 @@ if (!(Test-Path .tests)) { cd .tests Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression -scoop install main/git -scoop install main/neovim@0.10.2 +if (!(Test-Path ~/scoop)) { + Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression -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 luajit-for-win64-0.0.2 + scoop install main/git + scoop install main/neovim@0.10.2 +} -.\luajit-for-win64.cmd +if (!(Test-Path luajit-for-win64-0.0.2)) { + 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 luajit-for-win64-0.0.2 + .\luajit-for-win64.cmd +} $Env:KULALA_LUA_DIR = (Get-Location).Path