Skip to content

Commit

Permalink
fix(windows): correct LUA_PATH and LUA_CPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Nov 24, 2023
1 parent bb724f7 commit 1c699e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ 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
- name: Install `luarocks-build-rust-mlua` Package
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
Expand Down

0 comments on commit 1c699e6

Please sign in to comment.