Compare commits

...

6 Commits

Author SHA1 Message Date
Thomas f6a4e67d5f
Update supported languages 2021-04-06 17:38:30 +12:00
Thomas 1a04b5f889
Show semver selector on cli 2021-04-06 17:34:08 +12:00
Thomas e6d39d4a7f
Update readme.md 2021-04-06 17:27:37 +12:00
Thomas 2d446c33e6
Up wait time for index
Needed for large packages like ponyc
2021-04-06 17:09:19 +12:00
Dan Vargas 7cbfdd9f4c
pkg(ocaml-4.12.0): Add ocaml 4.12.0 (#200) 2021-04-06 17:07:54 +12:00
Dan Vargas ba8a0bc377
pkg(groovy-3.0.7): Add groovy 3.0.7 (#202) 2021-04-06 17:07:42 +12:00
13 changed files with 85 additions and 11 deletions

View File

@ -94,7 +94,7 @@ jobs:
docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/runtimes docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/runtimes
echo Waiting for Index to start.. echo Waiting for Index to start..
docker run --network container:piston_fs_repo appropriate/curl -s --retry 30 --retry-connrefused http://localhost:8000/index docker run --network container:piston_fs_repo appropriate/curl -s --retry 200 --retry-connrefused http://localhost:8000/index
echo Adjusting index echo Adjusting index
sed -i 's/piston_fs_repo/localhost/g' repo/index sed -i 's/piston_fs_repo/localhost/g' repo/index

13
packages/groovy/3.0.7/build.sh vendored Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Groovy depends on JDK8+
mkdir -p java
cd java
curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz
cd ..
curl -L "https://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.7.zip" -o groovy.zip
unzip -q groovy.zip
rm groovy.zip

5
packages/groovy/3.0.7/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# Groovy requires JAVA_HOME to be set
export JAVA_HOME=$PWD/java
export PATH=$PWD/groovy-3.0.7/bin:$PATH

5
packages/groovy/3.0.7/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "groovy",
"version": "3.0.7",
"aliases": ["groovy", "gvy"]
}

3
packages/groovy/3.0.7/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
groovy "$@"

1
packages/groovy/3.0.7/test.groovy vendored Normal file
View File

@ -0,0 +1 @@
println 'OK'

17
packages/ocaml/4.12.0/build.sh vendored Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl -L "https://github.com/ocaml/ocaml/archive/4.12.0.tar.gz" -o ocaml.tar.gz
tar xzf ocaml.tar.gz --strip-components=1
rm ocaml.tar.gz
./configure --prefix="$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

3
packages/ocaml/4.12.0/compile vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ocamlc -o out "$@"

3
packages/ocaml/4.12.0/environment vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
export PATH=$PWD/bin:$PATH

5
packages/ocaml/4.12.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "ocaml",
"version": "4.12.0",
"aliases": ["ocaml", "ml"]
}

4
packages/ocaml/4.12.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
shift
./out "$@"

1
packages/ocaml/4.12.0/test.ml vendored Normal file
View File

@ -0,0 +1 @@
print_string "OK\n";

View File

@ -120,7 +120,7 @@ cd cli && npm i && cd -
echo "$GITHUB_TOKEN" | docker login https://docker.pkg.github.com -u "$GITHUB_USERNAME" --password-stdin echo "$GITHUB_TOKEN" | docker login https://docker.pkg.github.com -u "$GITHUB_USERNAME" --password-stdin
# Change out the $GITHUB_TOKEN and $GITHUB_USERNAME with appropritate values # Change out the $GITHUB_TOKEN and $GITHUB_USERNAME with appropritate values
docker run -v $PWD:'/piston' --tmpfs /piston/jobs -dit -p 2000:2000 --privileged --name piston_api docker.pkg.github.com/engineer-man/piston/api:latest docker run -v $PWD:'/piston' --tmpfs /piston/jobs -dit -p 2000:2000 --name piston_api docker.pkg.github.com/engineer-man/piston/api:latest
``` ```
<br> <br>
@ -143,6 +143,13 @@ cli/index.js ppman install python 3.9.1
# Run a python script # Run a python script
echo 'print("Hello world!")' > test.py echo 'print("Hello world!")' > test.py
cli/index.js run python 3.9.1 test.py cli/index.js run python 3.9.1 test.py
# Run the script using the latest version
cli/index.js run python '*' test.py
# Run using python 3.x
cli/index.js run python 3.x test.py
``` ```
If you are operating on a remote machine, add the `-u` flag like so: If you are operating on a remote machine, add the `-u` flag like so:
@ -251,21 +258,23 @@ Content-Type: application/json
<br> <br>
# Supported Languages # Supported Languages
`awk`,
`bash`, `bash`,
`brainfuck`, `brainfuck`,
`c`,
`cpp`,
`clojure`, `clojure`,
`coffeescript`,
`cow`,
`crystal`, `crystal`,
`csharp`, `dart`,
`d`,
`dash`, `dash`,
`deno`, `deno`,
`dotnet`,
`elixir`, `elixir`,
`emacs`, `emacs`,
`elisp`, `erlang`,
`gawk`,
`gcc`,
`go`, `go`,
`groovy`,
`haskell`, `haskell`,
`java`, `java`,
`jelly`, `jelly`,
@ -274,21 +283,26 @@ Content-Type: application/json
`lisp`, `lisp`,
`lolcode`, `lolcode`,
`lua`, `lua`,
`mono`,
`nasm`, `nasm`,
`nasm64`,
`nim`, `nim`,
`node`, `node`,
`ocaml`,
`osabie`, `osabie`,
`paradoc`, `paradoc`,
`pascal`,
`perl`, `perl`,
`php`, `php`,
`python2`, `prolog`,
`python3`, `pure`,
`python`,
`rockstar`,
`ruby`, `ruby`,
`rust`, `rust`,
`scala`, `scala`,
`swift`, `swift`,
`typescript`, `typescript`,
`vlang`,
`zig`, `zig`,
<br> <br>