mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
Add Kotlin support
This commit is contained in:
parent
b750de1f5e
commit
c36c5a6e63
7 changed files with 24 additions and 0 deletions
|
@ -66,6 +66,9 @@ case "$lang" in
|
|||
"julia" | "jl")
|
||||
bin=julia
|
||||
;;
|
||||
"kotlin")
|
||||
bin=kotlin
|
||||
;;
|
||||
"nasm" | "asm")
|
||||
bin=nasm
|
||||
;;
|
||||
|
|
4
lxc/executors/kotlin
Executable file
4
lxc/executors/kotlin
Executable file
|
@ -0,0 +1,4 @@
|
|||
cd /tmp/$2
|
||||
cp code.code code.kt
|
||||
timeout -s KILL 10 kotlinc code.kt -include-runtime -d code.jar
|
||||
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 java -jar code.jar"
|
|
@ -24,6 +24,9 @@ echo '---'
|
|||
echo 'julia'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "julia --version"
|
||||
echo '---'
|
||||
echo 'kotlin'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "kotlinc -version"
|
||||
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