Skip to content

Commit

Permalink
fix(ci): windows cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Oct 13, 2024
1 parent 46cb0c5 commit 5858110
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
path: |
.tests
~\scoop\apps
~\scoop
~\AppData\Roaming\LJ4W
~\AppData\Roaming\luarocks
key: ${{ runner.os }}-tests
Expand All @@ -30,7 +30,7 @@ jobs:
with:
path: |
.tests
~\scoop\apps
~\scoop
~\AppData\Roaming\LJ4W
~\AppData\Roaming\luarocks
key: ${{ runner.os }}-tests
Expand Down
22 changes: 12 additions & 10 deletions scripts/install-ci-test-requirements.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5858110

Please sign in to comment.