From ff7318cbb3db8f3ee93be45d4f7ae892e2feed7d Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 19:11:49 -0800
Subject: [PATCH 01/12] chore: update naming to Endercheif
---
.github/workflows/api-push.yaml | 7 +++----
.github/workflows/package-pr.yaml | 6 +++---
.github/workflows/package-push.yaml | 6 +++---
.github/workflows/repo-push.yaml | 2 +-
api/src/config.js | 2 +-
builder/Dockerfile | 2 +-
builder/build.sh | 2 +-
docker-compose.yaml | 2 +-
docs/configuration.md | 2 +-
packages/CONTRIBUTING.MD | 2 +-
readme.md | 22 +++++++++++-----------
11 files changed, 27 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/api-push.yaml b/.github/workflows/api-push.yaml
index dec3bce..1969ff8 100644
--- a/.github/workflows/api-push.yaml
+++ b/.github/workflows/api-push.yaml
@@ -2,8 +2,7 @@ name: Publish API image
on:
push:
branches:
- - master
- - v3
+ - production
paths:
- api/**
@@ -34,5 +33,5 @@ jobs:
push: true
pull: true
tags: |
- docker.pkg.github.com/engineer-man/piston/api
- ghcr.io/engineer-man/piston
+ docker.pkg.github.com/Endercheif/piston/api
+ ghcr.io/Endercheif/piston
diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml
index d5bfe78..dfd169d 100644
--- a/.github/workflows/package-pr.yaml
+++ b/.github/workflows/package-pr.yaml
@@ -54,7 +54,7 @@ jobs:
run: |
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
echo "Packages: $PACKAGES"
- docker pull docker.pkg.github.com/engineer-man/piston/repo-builder:latest
+ docker pull docker.pkg.github.com/Endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
ls -la packages
@@ -89,8 +89,8 @@ jobs:
- name: Run tests
run: |
ls -la
- docker run -v $(pwd)'/repo:/piston/repo' -v $(pwd)'/packages:/piston/packages' -d --name repo docker.pkg.github.com/engineer-man/piston/repo-builder --no-build
- docker pull docker.pkg.github.com/engineer-man/piston/api
+ docker run -v $(pwd)'/repo:/piston/repo' -v $(pwd)'/packages:/piston/packages' -d --name repo docker.pkg.github.com/Endercheif/piston/repo-builder --no-build
+ docker pull docker.pkg.github.com/Endercheif/piston/api
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..
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index 9de6051..de58207 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -32,7 +32,7 @@ jobs:
run: |
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
echo "Packages: $PACKAGES"
- docker pull docker.pkg.github.com/engineer-man/piston/repo-builder:latest
+ docker pull docker.pkg.github.com/Endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
ls -la packages
@@ -51,11 +51,11 @@ jobs:
needs: build-pkg
steps:
- name: 'Download all release assets'
- run: curl -s https://api.github.com/repos/engineer-man/piston/releases/latest | jq '.assets[].browser_download_url' -r | xargs -L 1 curl -sLO
+ run: curl -s https://api.github.com/repos/Endercheif/piston/releases/latest | jq '.assets[].browser_download_url' -r | xargs -L 1 curl -sLO
- name: 'Generate index file'
run: |
echo "" > index
- BASEURL=https://github.com/engineer-man/piston/releases/download/pkgs/
+ BASEURL=https://github.com/Endercheif/piston/releases/download/pkgs/
for pkg in *.pkg.tar.gz
do
PKGFILE=$(basename $pkg)
diff --git a/.github/workflows/repo-push.yaml b/.github/workflows/repo-push.yaml
index c887b01..d52b669 100644
--- a/.github/workflows/repo-push.yaml
+++ b/.github/workflows/repo-push.yaml
@@ -28,4 +28,4 @@ jobs:
pull: true
push: true
tags: |
- docker.pkg.github.com/engineer-man/piston/repo-builder
+ docker.pkg.github.com/Endercheif/piston/repo-builder
diff --git a/api/src/config.js b/api/src/config.js
index b8fa97d..1d9a6b2 100644
--- a/api/src/config.js
+++ b/api/src/config.js
@@ -105,7 +105,7 @@ const options = {
repo_url: {
desc: 'URL of repo index',
default:
- 'https://github.com/engineer-man/piston/releases/download/pkgs/index',
+ 'https://github.com/Endercheif/piston/releases/download/pkgs/index',
validators: [],
},
max_concurrent_jobs: {
diff --git a/builder/Dockerfile b/builder/Dockerfile
index a769f35..e16bff4 100644
--- a/builder/Dockerfile
+++ b/builder/Dockerfile
@@ -1,2 +1,2 @@
-FROM ghcr.io/engineer-man/piston:latest
+FROM ghcr.io/Endercheif/piston:latest
ADD . /piston/packages/
\ No newline at end of file
diff --git a/builder/build.sh b/builder/build.sh
index eaae21d..62ea316 100755
--- a/builder/build.sh
+++ b/builder/build.sh
@@ -28,7 +28,7 @@ fetch_packages(){
-dit \
-p $port:2000 \
--name builder_piston_instance \
- ghcr.io/engineer-man/piston
+ ghcr.io/Endercheif/piston
# Ensure the CLI is installed
cd ../cli
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 839b340..25b415c 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -2,7 +2,7 @@ version: '3.2'
services:
api:
- image: ghcr.io/engineer-man/piston
+ image: ghcr.io/Endercheif/piston
container_name: piston_api
restart: always
ports:
diff --git a/docs/configuration.md b/docs/configuration.md
index 1a6f5bd..cdd0fb8 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -156,7 +156,7 @@ Useful for running memory-limited contests.
```yaml
key: PISTON_REPO_URL
-default: https://github.com/engineer-man/piston/releases/download/pkgs/index
+default: https://github.com/Endercheif/piston/releases/download/pkgs/index
```
URL for repository index, where packages will be downloaded from.
diff --git a/packages/CONTRIBUTING.MD b/packages/CONTRIBUTING.MD
index 53deda9..69b0a19 100644
--- a/packages/CONTRIBUTING.MD
+++ b/packages/CONTRIBUTING.MD
@@ -10,7 +10,7 @@ In the example of NodeJS, we would call this `node`, after the main binary.
See [deno/1.7.5/](deno/1.7.5/) or any other directory for examples.
-1. Create a new branch on your fork of engineer-man/piston
+1. Create a new branch on your fork of Endercheif/piston
2. Create directories named `[language]/[version]`. See Naming Languages for how to determine the name for your language
diff --git a/readme.md b/readme.md
index 7ef99b5..3686373 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
-
-
+
+
Piston
@@ -12,14 +12,14 @@
-
-
+
-
-
+
-
-
+
@@ -64,7 +64,7 @@ It's used in numerous places including:
The following are approved and endorsed extensions/utilities to the core Piston offering.
-- [I Run Code](https://github.com/engineer-man/piston-bot), a Discord bot used in 4100+ servers to handle arbitrary code evaluation in Discord. To get this bot in your own server, go here: https://emkc.org/run.
+- [I Run Code](https://github.com/Endercheif/piston-bot), a Discord bot used in 4100+ servers to handle arbitrary code evaluation in Discord. To get this bot in your own server, go here: https://emkc.org/run.
- [Piston CLI](https://github.com/Shivansh-007/piston-cli), a universal shell supporting code highlighting, files, and interpretation without the need to download a language.
- [Node Piston Client](https://github.com/dthree/node-piston), a Node.js wrapper for accessing the Piston API.
- [Piston4J](https://github.com/the-codeboy/Piston4J), a Java wrapper for accessing the Piston API.
@@ -111,7 +111,7 @@ POST https://emkc.org/api/v2/piston/execute
```sh
# clone and enter repo
-git clone https://github.com/engineer-man/piston
+git clone https://github.com/Endercheif/piston
```
### Installation
@@ -141,7 +141,7 @@ docker run \
-dit \
-p 2000:2000 \
--name piston_api \
- ghcr.io/engineer-man/piston
+ ghcr.io/Endercheif/piston
```
## Piston for testing packages locally
From 86b36630c4666498d9e541cc2452b7e477471d29 Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 19:12:42 -0800
Subject: [PATCH 02/12] fix: name is now lowercase
---
.github/workflows/api-push.yaml | 4 ++--
.github/workflows/package-pr.yaml | 6 +++---
.github/workflows/package-push.yaml | 6 +++---
.github/workflows/repo-push.yaml | 2 +-
api/src/config.js | 2 +-
builder/Dockerfile | 2 +-
builder/build.sh | 2 +-
docker-compose.yaml | 2 +-
docs/configuration.md | 2 +-
packages/CONTRIBUTING.MD | 2 +-
readme.md | 22 +++++++++++-----------
11 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/.github/workflows/api-push.yaml b/.github/workflows/api-push.yaml
index 1969ff8..52809e6 100644
--- a/.github/workflows/api-push.yaml
+++ b/.github/workflows/api-push.yaml
@@ -33,5 +33,5 @@ jobs:
push: true
pull: true
tags: |
- docker.pkg.github.com/Endercheif/piston/api
- ghcr.io/Endercheif/piston
+ docker.pkg.github.com/endercheif/piston/api
+ ghcr.io/endercheif/piston
diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml
index dfd169d..7f1849d 100644
--- a/.github/workflows/package-pr.yaml
+++ b/.github/workflows/package-pr.yaml
@@ -54,7 +54,7 @@ jobs:
run: |
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
echo "Packages: $PACKAGES"
- docker pull docker.pkg.github.com/Endercheif/piston/repo-builder:latest
+ docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
ls -la packages
@@ -89,8 +89,8 @@ jobs:
- name: Run tests
run: |
ls -la
- docker run -v $(pwd)'/repo:/piston/repo' -v $(pwd)'/packages:/piston/packages' -d --name repo docker.pkg.github.com/Endercheif/piston/repo-builder --no-build
- docker pull docker.pkg.github.com/Endercheif/piston/api
+ docker run -v $(pwd)'/repo:/piston/repo' -v $(pwd)'/packages:/piston/packages' -d --name repo docker.pkg.github.com/endercheif/piston/repo-builder --no-build
+ docker pull docker.pkg.github.com/endercheif/piston/api
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..
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index de58207..c5af8de 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -32,7 +32,7 @@ jobs:
run: |
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
echo "Packages: $PACKAGES"
- docker pull docker.pkg.github.com/Endercheif/piston/repo-builder:latest
+ docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
ls -la packages
@@ -51,11 +51,11 @@ jobs:
needs: build-pkg
steps:
- name: 'Download all release assets'
- run: curl -s https://api.github.com/repos/Endercheif/piston/releases/latest | jq '.assets[].browser_download_url' -r | xargs -L 1 curl -sLO
+ run: curl -s https://api.github.com/repos/endercheif/piston/releases/latest | jq '.assets[].browser_download_url' -r | xargs -L 1 curl -sLO
- name: 'Generate index file'
run: |
echo "" > index
- BASEURL=https://github.com/Endercheif/piston/releases/download/pkgs/
+ BASEURL=https://github.com/endercheif/piston/releases/download/pkgs/
for pkg in *.pkg.tar.gz
do
PKGFILE=$(basename $pkg)
diff --git a/.github/workflows/repo-push.yaml b/.github/workflows/repo-push.yaml
index d52b669..adbe4f5 100644
--- a/.github/workflows/repo-push.yaml
+++ b/.github/workflows/repo-push.yaml
@@ -28,4 +28,4 @@ jobs:
pull: true
push: true
tags: |
- docker.pkg.github.com/Endercheif/piston/repo-builder
+ docker.pkg.github.com/endercheif/piston/repo-builder
diff --git a/api/src/config.js b/api/src/config.js
index 1d9a6b2..9452b82 100644
--- a/api/src/config.js
+++ b/api/src/config.js
@@ -105,7 +105,7 @@ const options = {
repo_url: {
desc: 'URL of repo index',
default:
- 'https://github.com/Endercheif/piston/releases/download/pkgs/index',
+ 'https://github.com/endercheif/piston/releases/download/pkgs/index',
validators: [],
},
max_concurrent_jobs: {
diff --git a/builder/Dockerfile b/builder/Dockerfile
index e16bff4..c3dea1a 100644
--- a/builder/Dockerfile
+++ b/builder/Dockerfile
@@ -1,2 +1,2 @@
-FROM ghcr.io/Endercheif/piston:latest
+FROM ghcr.io/endercheif/piston:latest
ADD . /piston/packages/
\ No newline at end of file
diff --git a/builder/build.sh b/builder/build.sh
index 62ea316..c1a9221 100755
--- a/builder/build.sh
+++ b/builder/build.sh
@@ -28,7 +28,7 @@ fetch_packages(){
-dit \
-p $port:2000 \
--name builder_piston_instance \
- ghcr.io/Endercheif/piston
+ ghcr.io/endercheif/piston
# Ensure the CLI is installed
cd ../cli
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 25b415c..b528264 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -2,7 +2,7 @@ version: '3.2'
services:
api:
- image: ghcr.io/Endercheif/piston
+ image: ghcr.io/endercheif/piston
container_name: piston_api
restart: always
ports:
diff --git a/docs/configuration.md b/docs/configuration.md
index cdd0fb8..26cf235 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -156,7 +156,7 @@ Useful for running memory-limited contests.
```yaml
key: PISTON_REPO_URL
-default: https://github.com/Endercheif/piston/releases/download/pkgs/index
+default: https://github.com/endercheif/piston/releases/download/pkgs/index
```
URL for repository index, where packages will be downloaded from.
diff --git a/packages/CONTRIBUTING.MD b/packages/CONTRIBUTING.MD
index 69b0a19..23630a1 100644
--- a/packages/CONTRIBUTING.MD
+++ b/packages/CONTRIBUTING.MD
@@ -10,7 +10,7 @@ In the example of NodeJS, we would call this `node`, after the main binary.
See [deno/1.7.5/](deno/1.7.5/) or any other directory for examples.
-1. Create a new branch on your fork of Endercheif/piston
+1. Create a new branch on your fork of endercheif/piston
2. Create directories named `[language]/[version]`. See Naming Languages for how to determine the name for your language
diff --git a/readme.md b/readme.md
index 3686373..27a56c4 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
-
-
+
+
Piston
@@ -12,14 +12,14 @@
-
-
+
-
-
+
-
-
+
@@ -64,7 +64,7 @@ It's used in numerous places including:
The following are approved and endorsed extensions/utilities to the core Piston offering.
-- [I Run Code](https://github.com/Endercheif/piston-bot), a Discord bot used in 4100+ servers to handle arbitrary code evaluation in Discord. To get this bot in your own server, go here: https://emkc.org/run.
+- [I Run Code](https://github.com/endercheif/piston-bot), a Discord bot used in 4100+ servers to handle arbitrary code evaluation in Discord. To get this bot in your own server, go here: https://emkc.org/run.
- [Piston CLI](https://github.com/Shivansh-007/piston-cli), a universal shell supporting code highlighting, files, and interpretation without the need to download a language.
- [Node Piston Client](https://github.com/dthree/node-piston), a Node.js wrapper for accessing the Piston API.
- [Piston4J](https://github.com/the-codeboy/Piston4J), a Java wrapper for accessing the Piston API.
@@ -111,7 +111,7 @@ POST https://emkc.org/api/v2/piston/execute
```sh
# clone and enter repo
-git clone https://github.com/Endercheif/piston
+git clone https://github.com/endercheif/piston
```
### Installation
@@ -141,7 +141,7 @@ docker run \
-dit \
-p 2000:2000 \
--name piston_api \
- ghcr.io/Endercheif/piston
+ ghcr.io/endercheif/piston
```
## Piston for testing packages locally
From c5597980009ff7e8ab11481c2242c9905c7f0bff Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 19:35:47 -0800
Subject: [PATCH 03/12] chore: workflow_dispatch
---
.github/workflows/api-push.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/api-push.yaml b/.github/workflows/api-push.yaml
index 52809e6..a39499f 100644
--- a/.github/workflows/api-push.yaml
+++ b/.github/workflows/api-push.yaml
@@ -1,6 +1,7 @@
name: Publish API image
on:
- push:
+ - workflow_dispatch
+ - push:
branches:
- production
paths:
From 7cd9e019a14f4f0e5d3c350226f8944abf311a55 Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 19:37:01 -0800
Subject: [PATCH 04/12] chore: fix ci
---
.github/workflows/api-push.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/api-push.yaml b/.github/workflows/api-push.yaml
index a39499f..63f65c0 100644
--- a/.github/workflows/api-push.yaml
+++ b/.github/workflows/api-push.yaml
@@ -1,7 +1,7 @@
name: Publish API image
on:
- - workflow_dispatch
- - push:
+ workflow_dispatch:
+ push:
branches:
- production
paths:
From 20bff4da8c28b81fc3119f6010d9e3bd0d57096f Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 19:38:25 -0800
Subject: [PATCH 05/12] chore: manually trigger ci
---
.github/workflows/package-pr.yaml | 1 +
.github/workflows/package-push.yaml | 1 +
.github/workflows/repo-push.yaml | 1 +
3 files changed, 3 insertions(+)
diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml
index 7f1849d..ded9014 100644
--- a/.github/workflows/package-pr.yaml
+++ b/.github/workflows/package-pr.yaml
@@ -8,6 +8,7 @@ on:
- synchronize
paths:
- 'packages/**'
+ workflow_dispatch:
jobs:
check-pkg:
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index c5af8de..d7b8d9d 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -7,6 +7,7 @@ on:
- v3
paths:
- packages/**
+ workflow_dispatch:
jobs:
build-pkg:
diff --git a/.github/workflows/repo-push.yaml b/.github/workflows/repo-push.yaml
index adbe4f5..0354edf 100644
--- a/.github/workflows/repo-push.yaml
+++ b/.github/workflows/repo-push.yaml
@@ -6,6 +6,7 @@ on:
- v3
paths:
- repo/**
+ workflow_dispatch:
jobs:
push_to_registry:
From cd296b5499138040aac645965060ecaaa32d43b9 Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 19:52:40 -0800
Subject: [PATCH 06/12] temp fix to build everything
---
.github/workflows/package-push.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index d7b8d9d..b6c6956 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -31,7 +31,8 @@ jobs:
- name: Build Packages
run: |
- PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
+ # PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
+ PACKAGES="CONTRIBUTING.MD MATL Makefile README.MD bash befunge93 bqn brachylog brainfuck cjam clojure cobol coffeescript cow crystal dart dash deno dotnet dragon elixir emacs emojicode erlang file forte forth freebasic gawk gcc go golfscript groovy haskell husk init iverilog japt java jelly julia kotlin lisp llvm_ir lolcode lua mono nasm nim node ocaml octave osabie paradoc pascal perl php ponylang prolog pure pwsh pyth python racket raku retina rockstar rscript ruby rust samarium scala smalltalk sqlite3 swift test.sh typescript vlang vyxal yeethon zig"
echo "Packages: $PACKAGES"
docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
From 764315d6fa061b1801ee27337187824b71e8c85a Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Tue, 14 Feb 2023 20:08:45 -0800
Subject: [PATCH 07/12] tempfix
---
.github/workflows/package-push.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index b6c6956..9111f17 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -32,7 +32,7 @@ jobs:
- name: Build Packages
run: |
# PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
- PACKAGES="CONTRIBUTING.MD MATL Makefile README.MD bash befunge93 bqn brachylog brainfuck cjam clojure cobol coffeescript cow crystal dart dash deno dotnet dragon elixir emacs emojicode erlang file forte forth freebasic gawk gcc go golfscript groovy haskell husk init iverilog japt java jelly julia kotlin lisp llvm_ir lolcode lua mono nasm nim node ocaml octave osabie paradoc pascal perl php ponylang prolog pure pwsh pyth python racket raku retina rockstar rscript ruby rust samarium scala smalltalk sqlite3 swift test.sh typescript vlang vyxal yeethon zig"
+ PACKAGES="MATL-22.5.0 bash-5.1.0 befunge93-0.2.0 bqn-1.0.0 brachylog-1.0.0 brainfuck-2.7.3 cjam-0.6.5 clojure-1.10.3 cobol-3.1.2 coffeescript-2.5.1 cow-1.0.0 crystal-0.36.1 dart-2.12.1 dash-0.5.11 deno-1.16.2 deno-1.7.5 dotnet-5.0.201 dragon-1.9.8 elixir-1.11.3 emacs-27.1.0 emojicode-1.0.2 erlang-23.0.0 file-0.0.1 forte-1.0.0 forth-0.7.3 freebasic-1.8.0 gawk-5.1.0 gcc-10.2.0 go-1.16.2 golfscript-1.0.0 groovy-3.0.7 haskell-9.0.1 husk-1.0.0 iverilog-11.0.0 japt-2.0.0 java-15.0.2 jelly-0.1.31 julia-1.5.4 julia-1.6.1 kotlin-1.4.31 lisp-2.1.2 llvm_ir-12.0.1 lolcode-0.11.2 lua-5.4.2 mono-6.12.0 nasm-2.15.5 nim-1.4.4 node-15.10.0 node-16.3.0 ocaml-4.12.0 octave-6.2.0 osabie-1.0.1 paradoc-0.6.0 pascal-3.2.0 perl-5.26.1 php-8.0.2 ponylang-0.39.0 prolog-8.2.4 pure-0.68.0 pwsh-7.1.4 pyth-1.0.0 python-2.7.18 python-3.10.0 python-3.10.0-alpha.7 python-3.5.10 python-3.9.1 python-3.9.4 racket-8.3.0 raku-6.100.0 retina-1.2.0 rockstar-1.0.0 rscript-4.1.1 ruby-2.5.1 ruby-3.0.1 rust-1.50.0 rust-1.56.1 rust-1.62.0 rust-1.63.0 rust-1.65.0 samarium-0.3.1 scala-3.0.0 smalltalk-3.2.3 sqlite3-3.36.0 swift-5.3.3 typescript-4.2.3 vlang-0.1.13 vyxal-2.4.1 yeethon-3.10.0 zig-0.7.1 zig-0.8.0 zig-0.9.1"
echo "Packages: $PACKAGES"
docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
From c112130373da7e94ece77fccfcc78cffc743469e Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Thu, 16 Feb 2023 02:43:23 +0000
Subject: [PATCH 08/12] rollback temp changes
---
.github/workflows/package-push.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index 9111f17..d7b8d9d 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -31,8 +31,7 @@ jobs:
- name: Build Packages
run: |
- # PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
- PACKAGES="MATL-22.5.0 bash-5.1.0 befunge93-0.2.0 bqn-1.0.0 brachylog-1.0.0 brainfuck-2.7.3 cjam-0.6.5 clojure-1.10.3 cobol-3.1.2 coffeescript-2.5.1 cow-1.0.0 crystal-0.36.1 dart-2.12.1 dash-0.5.11 deno-1.16.2 deno-1.7.5 dotnet-5.0.201 dragon-1.9.8 elixir-1.11.3 emacs-27.1.0 emojicode-1.0.2 erlang-23.0.0 file-0.0.1 forte-1.0.0 forth-0.7.3 freebasic-1.8.0 gawk-5.1.0 gcc-10.2.0 go-1.16.2 golfscript-1.0.0 groovy-3.0.7 haskell-9.0.1 husk-1.0.0 iverilog-11.0.0 japt-2.0.0 java-15.0.2 jelly-0.1.31 julia-1.5.4 julia-1.6.1 kotlin-1.4.31 lisp-2.1.2 llvm_ir-12.0.1 lolcode-0.11.2 lua-5.4.2 mono-6.12.0 nasm-2.15.5 nim-1.4.4 node-15.10.0 node-16.3.0 ocaml-4.12.0 octave-6.2.0 osabie-1.0.1 paradoc-0.6.0 pascal-3.2.0 perl-5.26.1 php-8.0.2 ponylang-0.39.0 prolog-8.2.4 pure-0.68.0 pwsh-7.1.4 pyth-1.0.0 python-2.7.18 python-3.10.0 python-3.10.0-alpha.7 python-3.5.10 python-3.9.1 python-3.9.4 racket-8.3.0 raku-6.100.0 retina-1.2.0 rockstar-1.0.0 rscript-4.1.1 ruby-2.5.1 ruby-3.0.1 rust-1.50.0 rust-1.56.1 rust-1.62.0 rust-1.63.0 rust-1.65.0 samarium-0.3.1 scala-3.0.0 smalltalk-3.2.3 sqlite3-3.36.0 swift-5.3.3 typescript-4.2.3 vlang-0.1.13 vyxal-2.4.1 yeethon-3.10.0 zig-0.7.1 zig-0.8.0 zig-0.9.1"
+ PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
echo "Packages: $PACKAGES"
docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
From 9752e43995a17565d41ac0d39a97f09bb6cd8da1 Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Thu, 16 Feb 2023 03:34:25 +0000
Subject: [PATCH 09/12] feat: samarium
---
packages/samarium/0.3.1/run | 2 +-
packages/samarium/0.4.0/build.sh | 3 +++
packages/samarium/0.4.0/environment | 2 ++
packages/samarium/0.4.0/metadata.json | 5 +++++
packages/samarium/0.4.0/run | 1 +
packages/samarium/0.4.0/test.sm | 3 +++
6 files changed, 15 insertions(+), 1 deletion(-)
create mode 100755 packages/samarium/0.4.0/build.sh
create mode 100644 packages/samarium/0.4.0/environment
create mode 100644 packages/samarium/0.4.0/metadata.json
create mode 100644 packages/samarium/0.4.0/run
create mode 100644 packages/samarium/0.4.0/test.sm
diff --git a/packages/samarium/0.3.1/run b/packages/samarium/0.3.1/run
index d65533d..af0c24c 100644
--- a/packages/samarium/0.3.1/run
+++ b/packages/samarium/0.3.1/run
@@ -1 +1 @@
-python3 -m samarium $1
+python3 -m samarium $1
\ No newline at end of file
diff --git a/packages/samarium/0.4.0/build.sh b/packages/samarium/0.4.0/build.sh
new file mode 100755
index 0000000..b70827b
--- /dev/null
+++ b/packages/samarium/0.4.0/build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+source ../../python/3.10.0/build.sh
+bin/pip3 install https://github.com/samarium-lang/Samarium/archive/refs/tags/0.4.0.zip
diff --git a/packages/samarium/0.4.0/environment b/packages/samarium/0.4.0/environment
new file mode 100644
index 0000000..b482830
--- /dev/null
+++ b/packages/samarium/0.4.0/environment
@@ -0,0 +1,2 @@
+#!/bin/bash
+export PATH=$PWD/bin:$PATH
diff --git a/packages/samarium/0.4.0/metadata.json b/packages/samarium/0.4.0/metadata.json
new file mode 100644
index 0000000..4352acf
--- /dev/null
+++ b/packages/samarium/0.4.0/metadata.json
@@ -0,0 +1,5 @@
+{
+ "language": "samarium",
+ "version": "0.4.0",
+ "aliases": ["sm"]
+}
diff --git a/packages/samarium/0.4.0/run b/packages/samarium/0.4.0/run
new file mode 100644
index 0000000..af0c24c
--- /dev/null
+++ b/packages/samarium/0.4.0/run
@@ -0,0 +1 @@
+python3 -m samarium $1
\ No newline at end of file
diff --git a/packages/samarium/0.4.0/test.sm b/packages/samarium/0.4.0/test.sm
new file mode 100644
index 0000000..57d4d5c
--- /dev/null
+++ b/packages/samarium/0.4.0/test.sm
@@ -0,0 +1,3 @@
+=> * {
+ "OK"!;
+}
From b37260f46580bfb2d6834bc9852e703e23b1c3a9 Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Thu, 16 Feb 2023 03:40:29 +0000
Subject: [PATCH 10/12] temp build samarium
---
.github/workflows/package-push.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index d7b8d9d..81b297f 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -31,7 +31,8 @@ jobs:
- name: Build Packages
run: |
- PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
+ # PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
+ PACKAGES="samarium-0.4.0 samarium-0.3.1"
echo "Packages: $PACKAGES"
docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo
From d897ebded0144cbfc25b61c45df0b4fafea08646 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 16 Feb 2023 22:39:33 +0000
Subject: [PATCH 11/12] build(deps): bump node-fetch from 2.6.1 to 2.6.7 in
/api
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: direct:production
...
Signed-off-by: dependabot[bot]
---
api/package-lock.json | 66 ++++++++++++++++++++++++++++++++++++++-----
api/package.json | 2 +-
2 files changed, 60 insertions(+), 8 deletions(-)
diff --git a/api/package-lock.json b/api/package-lock.json
index 2b34fc4..3813c0a 100644
--- a/api/package-lock.json
+++ b/api/package-lock.json
@@ -16,7 +16,7 @@
"is-docker": "^2.1.1",
"logplease": "^1.2.15",
"nocamel": "HexF/nocamel#patch-1",
- "node-fetch": "^2.6.1",
+ "node-fetch": "^2.6.7",
"semver": "^7.3.4",
"uuid": "^8.3.2",
"waitpid": "git+https://github.com/HexF/node-waitpid.git"
@@ -375,11 +375,22 @@
"resolved": "git+ssh://git@github.com/HexF/nocamel.git#89a5bfbbd07c72c302d968b967d0f4fe54846544"
},
"node_modules/node-fetch": {
- "version": "2.6.1",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
- "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==",
+ "version": "2.6.7",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
+ "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
"engines": {
"node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
}
},
"node_modules/on-finished": {
@@ -535,6 +546,11 @@
"node": ">=0.6"
}
},
+ "node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
+ },
"node_modules/type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
@@ -583,6 +599,20 @@
"resolved": "git+ssh://git@github.com/HexF/node-waitpid.git#a08d116a5d993a747624fe72ff890167be8c34aa",
"hasInstallScript": true
},
+ "node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
+ },
+ "node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
"node_modules/ws": {
"version": "7.5.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz",
@@ -877,9 +907,12 @@
"from": "nocamel@HexF/nocamel#patch-1"
},
"node-fetch": {
- "version": "2.6.1",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
- "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
+ "version": "2.6.7",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
+ "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+ "requires": {
+ "whatwg-url": "^5.0.0"
+ }
},
"on-finished": {
"version": "2.3.0",
@@ -1000,6 +1033,11 @@
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
},
+ "tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
+ },
"type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
@@ -1033,6 +1071,20 @@
"version": "git+ssh://git@github.com/HexF/node-waitpid.git#a08d116a5d993a747624fe72ff890167be8c34aa",
"from": "waitpid@git+https://github.com/HexF/node-waitpid.git"
},
+ "webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
+ },
+ "whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "requires": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
"ws": {
"version": "7.5.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz",
diff --git a/api/package.json b/api/package.json
index fb107a5..7f22601 100644
--- a/api/package.json
+++ b/api/package.json
@@ -11,7 +11,7 @@
"is-docker": "^2.1.1",
"logplease": "^1.2.15",
"nocamel": "HexF/nocamel#patch-1",
- "node-fetch": "^2.6.1",
+ "node-fetch": "^2.6.7",
"semver": "^7.3.4",
"uuid": "^8.3.2",
"waitpid": "git+https://github.com/HexF/node-waitpid.git"
From 593f59a184cef8dc57b9969a511049eafd383632 Mon Sep 17 00:00:00 2001
From: Endercheif <45527309+Endercheif@users.noreply.github.com>
Date: Thu, 16 Feb 2023 18:02:21 -0800
Subject: [PATCH 12/12] chore: revert samarium build
---
.github/workflows/package-push.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/package-push.yaml b/.github/workflows/package-push.yaml
index 81b297f..d7b8d9d 100644
--- a/.github/workflows/package-push.yaml
+++ b/.github/workflows/package-push.yaml
@@ -31,8 +31,7 @@ jobs:
- name: Build Packages
run: |
- # PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
- PACKAGES="samarium-0.4.0 samarium-0.3.1"
+ PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
echo "Packages: $PACKAGES"
docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
docker build -t repo-builder repo