delete nim

This commit is contained in:
Brian Seymour 2021-01-12 13:45:40 -06:00
parent c3416b8628
commit 1441b5ef6f
6 changed files with 1 additions and 27 deletions

View File

@ -83,7 +83,6 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"lua", "lua",
"nasm", "asm", "nasm", "asm",
"nasm64", "asm64", "nasm64", "asm64",
"nim",
"node", "javascript", "js", "node", "javascript", "js",
"perl", "pl", "perl", "pl",
"php", "php",

View File

@ -90,9 +90,6 @@ case "$lang" in
"nasm64" | "asm64") "nasm64" | "asm64")
bin=nasm64 bin=nasm64
;; ;;
"nim")
bin=nim
;;
"node" | "js" | "javascript") "node" | "js" | "javascript")
bin=node bin=node
;; ;;

View File

@ -1,4 +0,0 @@
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"

View File

@ -31,8 +31,6 @@ echo 'testing asm 32 bit'
../execute asm test.nasm ../execute asm test.nasm
echo 'testing asm 64 bit' echo 'testing asm 64 bit'
../execute asm64 test64.nasm ../execute asm64 test64.nasm
echo 'testing nim'
../execute nim test.nim
echo 'testing php' echo 'testing php'
../execute php test.php ../execute php test.php
echo 'testing perl' echo 'testing perl'

View File

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

View File

@ -249,18 +249,6 @@ echo 'export DENO_INSTALL="/opt/.deno"' >> /opt/.profile
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile
source /opt/.profile source /opt/.profile
# install nim
# final binary: /opt/nim/bin/nim
# get version: /opt/nim/bin/nim -v
cd /opt && mkdir nim && cd nim
wget https://nim-lang.org/download/nim-1.4.0-linux_x64.tar.xz
unxz nim-1.4.0-linux_x64.tar.xz
tar -xf nim-1.4.0-linux_x64.tar
cd nim-1.4.0
./install.sh /opt
echo 'export PATH=$PATH:/opt/nim/bin' >> /opt/.profile
source /opt/.profile
# create runnable users and apply limits # create runnable users and apply limits
for i in {1..150}; do for i in {1..150}; do
useradd -M runner$i useradd -M runner$i