piston: add zig support

This commit is contained in:
g-w1 2021-01-09 17:40:18 -05:00
parent b0c462d5ee
commit 82f67dd091
7 changed files with 32 additions and 0 deletions

4
lxc/executors/zig Executable file
View file

@ -0,0 +1,4 @@
cd /tmp/$2
cp code.code main.zig
timeout -s KILL 10 zig build-exe main.zig
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./main"