mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
Compile rust as runner
This commit is contained in:
parent
be4e0776b6
commit
14565b16e4
4 changed files with 20 additions and 14 deletions
|
@ -1,2 +1,6 @@
|
|||
cd /tmp/$2
|
||||
runuser runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 python3 -m paradoc code.code <<< args.args"
|
||||
#!/bin/bash
|
||||
|
||||
runuser runner$1 -c "
|
||||
cd /tmp/$2
|
||||
timeout -s KILL 3 python3 -m paradoc code.code < args.args
|
||||
"
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
rustc -o binary code.code
|
||||
|
||||
runuser runner$1 -c "
|
||||
cd /tmp/$2
|
||||
rustc -o binary code.code
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue