Wouldn't it make more sense to make Lua available on Chocolatey and then use Appveyor's support to download the appropriate version? Then Lua wouldn't need compiling as the binaries would be downloaded from Chocolatey and would be a far more collaborative and efficient approach.
https://chocolatey.org/packages/lua.