Merge pull request #28 from Vrganj/master

Add Nim
This commit is contained in:
Brian Seymour 2020-11-01 19:22:27 -06:00 committed by GitHub
commit a4039fa334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 0 deletions

4
lxc/executors/nim Executable file
View file

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

1
lxc/tests/test.nim Normal file
View file

@ -0,0 +1 @@
echo("good")

View file

@ -69,6 +69,9 @@ echo 'nasm'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version"
echo '---'
echo 'nim'
lxc-attack --clear-env -n piston -- /bin/bash -l -c "nim -v | head -n1"
echo 'node'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "node --version"
echo '---'