add lua support

This commit is contained in:
Brian Seymour 2020-10-06 23:40:14 -05:00
parent 9d04f1929d
commit c2904a8e14
5 changed files with 20 additions and 0 deletions

View file

@ -75,6 +75,9 @@ case "$lang" in
"kotlin")
bin=kotlin
;;
"lua")
bin=lua
;;
"nasm" | "asm")
bin=nasm
;;

2
lxc/executors/lua Normal file
View file

@ -0,0 +1,2 @@
cd /tmp/$2
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 lua code.code"

View file

@ -33,6 +33,9 @@ echo '---'
echo 'kotlin'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "kotlinc -version 2>&1 | grep kotlin"
echo "---"
echo 'lua'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lua -v"
echo "---"
echo 'nasm'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version"
echo '---'