From 1c699e6c08e410f10fd9d92f089780e9918970d4 Mon Sep 17 00:00:00 2001 From: Marc Jakobi <marc.jakobi@tiko.energy> Date: Fri, 24 Nov 2023 12:49:13 +0100 Subject: [PATCH] fix(windows): correct LUA_PATH and LUA_CPATH --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f624c766..584d079fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,12 @@ jobs: - name: Install Luarocks uses: hishamhm/gh-actions-luarocks@master if: runner.os == 'Windows' + - name: Fix LUA_PATH and LUA_CPATH (Windows) + # TODO: Fix this upstream + run: | + echo "LUA_PATH=/c/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.1/?.lua:/c/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.1/?/init.lua" >> $env:GITHUB_ENV + echo "LUA_CPATH=/c/Users/runneradmin/AppData/Roaming/luarocks/lib/lua/5.1/?.dll >> $env:GITHUB_ENV + if: runner.os == 'Windows' - name: Print environment run: | printenv @@ -46,12 +52,6 @@ jobs: run: | luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua luarocks --verbose pack luarocks-build-rust-mlua - - name: Debug (Windows) - run: | - ls C:/Users/runneradmin/AppData/Roaming/luarocks/share - ls C:/Users/runneradmin/AppData/Roaming/luarocks/share/lua - ls C:/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.1 - if: runner.os == 'Windows' - name: Install TOML Package run: | luarocks --verbose --local --lua-version=5.1 install toml