From 472519ef3ac4a82bc80a6efa600d23427896c5f2 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:18:34 -0500 Subject: [PATCH 01/19] ts-node --- .github/workflows/package-pr.yaml | 2 +- api/package.json | 5 +++-- api/tsconfig.json | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 7f1849d..c6be24d 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" npx ts-node /app/src/index.ts run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done diff --git a/api/package.json b/api/package.json index 53d8ba6..07ccd64 100644 --- a/api/package.json +++ b/api/package.json @@ -2,10 +2,10 @@ "name": "piston-api", "version": "3.2.0", "description": "API for piston - a high performance code execution engine", - "module": "./dist/index.js", + "module": "./dist/src/index.ts", "type": "module", "scripts": { - "api": "node ./dist/index.js", + "api": "node ./dist/src/index.ts", "build": "npx tsc" }, "dependencies": { @@ -24,6 +24,7 @@ "devDependencies": { "@types/express": "^4.17.17", "@types/node-fetch": "^2.6.2", + "ts-node": "^10.9.1", "typescript": "^4.9.5" } } diff --git a/api/tsconfig.json b/api/tsconfig.json index ca4d1bd..9195f3b 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -11,6 +11,9 @@ "rootDir": "src", // "declaration": true }, + "ts-node": { + "esm": true + }, "include": ["src"], "exclude": ["dist", "node_modules"] } From d03165beb28bc10b826f86ce827cb42e7073796b Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:20:40 -0500 Subject: [PATCH 02/19] add test package --- packages/crystal/0.36.2/build.sh | 7 +++++++ packages/crystal/0.36.2/compile | 5 +++++ packages/crystal/0.36.2/environment | 1 + packages/crystal/0.36.2/metadata.json | 5 +++++ packages/crystal/0.36.2/run | 4 ++++ packages/crystal/0.36.2/test.cr | 1 + 6 files changed, 23 insertions(+) create mode 100755 packages/crystal/0.36.2/build.sh create mode 100644 packages/crystal/0.36.2/compile create mode 100644 packages/crystal/0.36.2/environment create mode 100644 packages/crystal/0.36.2/metadata.json create mode 100644 packages/crystal/0.36.2/run create mode 100644 packages/crystal/0.36.2/test.cr diff --git a/packages/crystal/0.36.2/build.sh b/packages/crystal/0.36.2/build.sh new file mode 100755 index 0000000..ba10f3f --- /dev/null +++ b/packages/crystal/0.36.2/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +curl -L "https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal-0.36.1-1-linux-x86_64.tar.gz" -o crystal.tar.gz +tar xzf crystal.tar.gz --strip-components=1 +rm crystal.tar.gz diff --git a/packages/crystal/0.36.2/compile b/packages/crystal/0.36.2/compile new file mode 100644 index 0000000..afbad6c --- /dev/null +++ b/packages/crystal/0.36.2/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Compile crystal files into out file +crystal build "$@" -o out --no-color && \ +chmod +x out diff --git a/packages/crystal/0.36.2/environment b/packages/crystal/0.36.2/environment new file mode 100644 index 0000000..bd0ff98 --- /dev/null +++ b/packages/crystal/0.36.2/environment @@ -0,0 +1 @@ +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/crystal/0.36.2/metadata.json b/packages/crystal/0.36.2/metadata.json new file mode 100644 index 0000000..f719caa --- /dev/null +++ b/packages/crystal/0.36.2/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "crystal", + "version": "0.36.2", + "aliases": ["crystal", "cr"] +} diff --git a/packages/crystal/0.36.2/run b/packages/crystal/0.36.2/run new file mode 100644 index 0000000..6955ba9 --- /dev/null +++ b/packages/crystal/0.36.2/run @@ -0,0 +1,4 @@ +#!/bin/bash + +shift # Filename is only used to compile +./out "$@" diff --git a/packages/crystal/0.36.2/test.cr b/packages/crystal/0.36.2/test.cr new file mode 100644 index 0000000..3fca0dd --- /dev/null +++ b/packages/crystal/0.36.2/test.cr @@ -0,0 +1 @@ +puts("OK") \ No newline at end of file From 1e9dfc79b60e871fb44412b08c5956cde2e4179d Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:22:35 -0500 Subject: [PATCH 03/19] revert package.json changes --- api/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/package.json b/api/package.json index 07ccd64..10a8862 100644 --- a/api/package.json +++ b/api/package.json @@ -2,10 +2,10 @@ "name": "piston-api", "version": "3.2.0", "description": "API for piston - a high performance code execution engine", - "module": "./dist/src/index.ts", + "module": "./dist/index.js", "type": "module", "scripts": { - "api": "node ./dist/src/index.ts", + "api": "node ./dist/index.js", "build": "npx tsc" }, "dependencies": { From 7adc53f872a072de48f78c99c1f8c0c592db36dd Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:39:22 -0500 Subject: [PATCH 04/19] install git in docker image --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 82d8410..101a406 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -8,7 +8,7 @@ RUN for i in $(seq 1001 1500); do \ useradd -M runner$i -g $i -u $i ; \ done RUN apt-get update && \ - apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev \ + apt-get install -y git libxml2 gnupg tar coreutils util-linux libc6-dev \ binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev \ libncurses6 libncurses5 libedit-dev libseccomp-dev rename procps python3 \ libreadline-dev libblas-dev liblapack-dev libpcre3-dev libarpack2-dev \ From 86fff5560808ed58a839ad459cc271953421f33a Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:46:26 -0500 Subject: [PATCH 05/19] run CI with node:15 --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index c6be24d..14dcaad 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" npx ts-node /app/src/index.ts run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/src/index.ts run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From 0077f4e0ca64d577cc29b994e0a07bc57d947d99 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:47:36 -0500 Subject: [PATCH 06/19] run CI with path to index.js --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 14dcaad..3cfaf98 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/src/index.ts run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From d8a3ae3ed77af2b9195626361079b763e872a066 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:48:12 -0500 Subject: [PATCH 07/19] remove ts-node dependency --- api/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/package.json b/api/package.json index 10a8862..772e87e 100644 --- a/api/package.json +++ b/api/package.json @@ -23,8 +23,6 @@ "license": "MIT", "devDependencies": { "@types/express": "^4.17.17", - "@types/node-fetch": "^2.6.2", - "ts-node": "^10.9.1", - "typescript": "^4.9.5" + "@types/node-fetch": "^2.6.2" } } From 212717e443d482ffe7f413f0cd7a1d6665b91522 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 22:54:59 -0500 Subject: [PATCH 08/19] remove ts-node not typescript lol --- api/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/package.json b/api/package.json index 772e87e..53d8ba6 100644 --- a/api/package.json +++ b/api/package.json @@ -23,6 +23,7 @@ "license": "MIT", "devDependencies": { "@types/express": "^4.17.17", - "@types/node-fetch": "^2.6.2" + "@types/node-fetch": "^2.6.2", + "typescript": "^4.9.5" } } From 12b62dc26603907042aa80a8ae47c691271713e4 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:02:18 -0500 Subject: [PATCH 09/19] ./ --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 3cfaf98..8bd3d71 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 ./dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From 8664b4e8d8e1536a811874167b88a4e3c8858494 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:02:58 -0500 Subject: [PATCH 10/19] add helpful ls --- .github/workflows/package-pr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 8bd3d71..0108765 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,6 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" ls -R docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 ./dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output From 0b39dde8ba8d609889477cece0304b2d81807288 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:09:26 -0500 Subject: [PATCH 11/19] remove ls --- .github/workflows/package-pr.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 0108765..8bd3d71 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,6 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" ls -R docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 ./dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output From 8f68d79dfdcc1b79575210cc05b4980a6193cbc7 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:21:20 -0500 Subject: [PATCH 12/19] use /app again --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 8bd3d71..3cfaf98 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 ./dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From bb53609d934dc6c54861498a0d7bfe504c82321b Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:23:50 -0500 Subject: [PATCH 13/19] try using || true --- .github/workflows/package-pr.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 3cfaf98..0c4e57f 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -94,16 +94,16 @@ jobs: docker build -t piston-api api docker run --network container:repo -v $(pwd)'/data:/piston' -e PISTON_LOG_LEVEL=DEBUG -e 'PISTON_REPO_URL=http://localhost:8000/index' -d --name api piston-api echo Waiting for API to start.. - docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/api/v2/runtimes + docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/api/v2/runtimes || true echo Waiting for Index to start.. - docker run --network container:repo appropriate/curl -s --retry 999 --retry-max-time 0 --retry-connrefused http://localhost:8000/index + docker run --network container:repo appropriate/curl -s --retry 999 --retry-max-time 0 --retry-connrefused http://localhost:8000/index || true echo Adjusting index sed -i 's/repo/localhost/g' repo/index echo Listing Packages - PACKAGES_JSON=$(docker run --network container:api appropriate/curl -s http://localhost:2000/api/v2/packages) + PACKAGES_JSON=$(docker run --network container:api appropriate/curl -s http://localhost:2000/api/v2/packages) || true echo $PACKAGES_JSON echo Getting CLI ready From 753f1527d81f28ed9fecfdfcf6de1f0ffe46f8c5 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:32:20 -0500 Subject: [PATCH 14/19] ???? --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 0c4e57f..ad11919 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/src/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From ec05ea947c9d549c58d299f2ecaabe23089e4978 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:54:33 -0500 Subject: [PATCH 15/19] among us --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index ad11919..1dd30e4 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -117,7 +117,7 @@ jobs: PKG_VERSION=$(awk -F- '{ print $2 }' <<< $package) echo "Installing..." - docker run --network container:api appropriate/curl -sXPOST http://localhost:2000/api/v2/packages -H "Content-Type: application/json" -d "{\"language\":\"$PKG_NAME\",\"version\":\"$PKG_VERSION\"}" + docker run --network container:api appropriate/curl -sXPOST http://localhost:2000/api/v2/packages -H "Content-Type: application/json" -d "{\"language\":\"$PKG_NAME\",\"version\":\"$PKG_VERSION\"}" || true TEST_SCRIPTS=packages/$PKG_PATH/test.* echo "Tests: $TEST_SCRIPTS" From 83e1f455e677d13906d1d93179f016f2296bb2fa Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 8 Mar 2023 23:55:40 -0500 Subject: [PATCH 16/19] idk --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 1dd30e4..f693f90 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/src/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From 822ae6c18df5f638fd089bb6f79718907141cfdf Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Thu, 9 Mar 2023 00:53:52 -0500 Subject: [PATCH 17/19] run index.js --- .github/workflows/package-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index f693f90..b0fbf09 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/dist/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From bd5a59d113c034fab84cc0c0cffead662a6e883d Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Thu, 9 Mar 2023 01:03:51 -0500 Subject: [PATCH 18/19] remove ts node --- api/tsconfig.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/tsconfig.json b/api/tsconfig.json index 9195f3b..ca4d1bd 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -11,9 +11,6 @@ "rootDir": "src", // "declaration": true }, - "ts-node": { - "esm": true - }, "include": ["src"], "exclude": ["dist", "node_modules"] } From e6294f523c8ac3002e7e053ff343f5aa2490e192 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Thu, 9 Mar 2023 01:04:02 -0500 Subject: [PATCH 19/19] remove crystal test --- packages/crystal/0.36.2/build.sh | 7 ------- packages/crystal/0.36.2/compile | 5 ----- packages/crystal/0.36.2/environment | 1 - packages/crystal/0.36.2/metadata.json | 5 ----- packages/crystal/0.36.2/run | 4 ---- packages/crystal/0.36.2/test.cr | 1 - 6 files changed, 23 deletions(-) delete mode 100755 packages/crystal/0.36.2/build.sh delete mode 100644 packages/crystal/0.36.2/compile delete mode 100644 packages/crystal/0.36.2/environment delete mode 100644 packages/crystal/0.36.2/metadata.json delete mode 100644 packages/crystal/0.36.2/run delete mode 100644 packages/crystal/0.36.2/test.cr diff --git a/packages/crystal/0.36.2/build.sh b/packages/crystal/0.36.2/build.sh deleted file mode 100755 index ba10f3f..0000000 --- a/packages/crystal/0.36.2/build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -PREFIX=$(realpath $(dirname $0)) - -curl -L "https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal-0.36.1-1-linux-x86_64.tar.gz" -o crystal.tar.gz -tar xzf crystal.tar.gz --strip-components=1 -rm crystal.tar.gz diff --git a/packages/crystal/0.36.2/compile b/packages/crystal/0.36.2/compile deleted file mode 100644 index afbad6c..0000000 --- a/packages/crystal/0.36.2/compile +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -# Compile crystal files into out file -crystal build "$@" -o out --no-color && \ -chmod +x out diff --git a/packages/crystal/0.36.2/environment b/packages/crystal/0.36.2/environment deleted file mode 100644 index bd0ff98..0000000 --- a/packages/crystal/0.36.2/environment +++ /dev/null @@ -1 +0,0 @@ -export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/crystal/0.36.2/metadata.json b/packages/crystal/0.36.2/metadata.json deleted file mode 100644 index f719caa..0000000 --- a/packages/crystal/0.36.2/metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "language": "crystal", - "version": "0.36.2", - "aliases": ["crystal", "cr"] -} diff --git a/packages/crystal/0.36.2/run b/packages/crystal/0.36.2/run deleted file mode 100644 index 6955ba9..0000000 --- a/packages/crystal/0.36.2/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -shift # Filename is only used to compile -./out "$@" diff --git a/packages/crystal/0.36.2/test.cr b/packages/crystal/0.36.2/test.cr deleted file mode 100644 index 3fca0dd..0000000 --- a/packages/crystal/0.36.2/test.cr +++ /dev/null @@ -1 +0,0 @@ -puts("OK") \ No newline at end of file