Skip to content

Commit

Permalink
Disable appveyor cache and activate lua54
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebird75 committed Nov 14, 2020
1 parent e4a223c commit 161b17b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
21 changes: 20 additions & 1 deletion .appveyor/install-lua.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ REM version numbers and file names for binaries from http://sf.net/p/luabinaries
set VER_51=5.1.5
set VER_52=5.2.4
set VER_53=5.3.3
set VER_54=5.4.0
set ZIP_51=lua-%VER_51%_Win32_bin.zip
set ZIP_52=lua-%VER_52%_Win32_bin.zip
set ZIP_53=lua-%VER_53%_Win32_bin.zip
set ZIP_54=lua-%VER_54%_Win32_bin.zip

:cinst
@echo off
Expand Down Expand Up @@ -59,7 +61,7 @@ goto :EOF

:lua53
@echo off
if NOT "%LUAENV%"=="lua53" goto luajit
if NOT "%LUAENV%"=="lua53" goto lua54
echo Setting up Lua 5.3 ...
if NOT EXIST "lua53\lua53.exe" (
@echo on
Expand All @@ -74,6 +76,23 @@ set LUA=lua53\lua53.exe
@echo off
goto :EOF

:lua54
@echo off
if NOT "%LUAENV%"=="lua54" goto luajit
echo Setting up Lua 5.4 ...
if NOT EXIST "lua54\lua54.exe" (
@echo on
echo Fetching Lua v5.4 from internet
curl -fLsS -o %ZIP_54% http://sourceforge.net/projects/luabinaries/files/%VER_54%/Tools%%20Executables/%ZIP_54%/download
unzip -d lua54 %ZIP_54%
) else (
echo Using cached version of Lua v5.4
)
@echo on
set LUA=lua54\lua54.exe
@echo off
goto :EOF

:luajit
if NOT "%LUAENV%"=="luajit20" goto luajit21
echo Setting up LuaJIT 2.0 ...
Expand Down
15 changes: 8 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ environment:
- LUAENV: lua51
- LUAENV: lua52
- LUAENV: lua53
- LUAENV: lua54
- LUAENV: luajit20
- LUAENV: luajit21
- LUAENV: cinst
Expand All @@ -20,13 +21,13 @@ matrix:
install:
- cmd: .appveyor\install-lua.cmd

cache:
- lua51 -> .appveyor\install-lua.cmd
- lua52 -> .appveyor\install-lua.cmd
- lua53 -> .appveyor\install-lua.cmd
- luajit20 -> .appveyor\install-lua.cmd
- luajit21 -> .appveyor\install-lua.cmd
- 'C:\Program Files (x86)\Lua -> .appveyor\install-lua.cmd'
#cache:
# - lua51 -> .appveyor\install-lua.cmd
# - lua52 -> .appveyor\install-lua.cmd
# - lua53 -> .appveyor\install-lua.cmd
# - luajit20 -> .appveyor\install-luajit.cmd
# - luajit21 -> .appveyor\install-luajit.cmd
# - 'C:\Program Files (x86)\Lua -> .appveyor\install-lua.cmd'

build: off

Expand Down

0 comments on commit 161b17b

Please sign in to comment.