mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
add lua support
This commit is contained in:
parent
9d04f1929d
commit
c2904a8e14
5 changed files with 20 additions and 0 deletions
|
@ -75,6 +75,9 @@ case "$lang" in
|
|||
"kotlin")
|
||||
bin=kotlin
|
||||
;;
|
||||
"lua")
|
||||
bin=lua
|
||||
;;
|
||||
"nasm" | "asm")
|
||||
bin=nasm
|
||||
;;
|
||||
|
|
2
lxc/executors/lua
Normal file
2
lxc/executors/lua
Normal 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"
|
|
@ -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 '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue