diff --git a/.github/workflows/polyglot-javascript-java-r.yml b/.github/workflows/archive-polyglot-javascript-java-r.yml
similarity index 58%
rename from .github/workflows/polyglot-javascript-java-r.yml
rename to .github/workflows/archive-polyglot-javascript-java-r.yml
index d1ca2ed8b..41ff64439 100644
--- a/.github/workflows/polyglot-javascript-java-r.yml
+++ b/.github/workflows/archive-polyglot-javascript-java-r.yml
@@ -1,21 +1,19 @@
-name: polyglot-javascript-java-r
+name: archive/polyglot-javascript-java-r
on:
push:
paths:
- - 'polyglot-javascript-java-r/**'
- - '.github/workflows/polyglot-javascript-java-r.yml'
+ - 'archive/polyglot-javascript-java-r/**'
+ - '.github/workflows/archive-polyglot-javascript-java-r.yml'
pull_request:
paths:
- - 'polyglot-javascript-java-r/**'
- - '.github/workflows/polyglot-javascript-java-r.yml'
- schedule:
- - cron: "0 0 1 * *" # run every month
+ - 'archive/polyglot-javascript-java-r/**'
+ - '.github/workflows/archive-polyglot-javascript-java-r.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
run:
- name: Run 'polyglot-javascript-java-r'
+ name: Run 'archive/polyglot-javascript-java-r'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
@@ -26,9 +24,9 @@ jobs:
java-version: '17'
components: 'nodejs,R'
github-token: ${{ secrets.GITHUB_TOKEN }}
- - name: Run 'polyglot-javascript-java-r'
+ - name: Run 'archive/polyglot-javascript-java-r'
run: |
- cd polyglot-javascript-java-r
+ cd archive/polyglot-javascript-java-r
npm install
$GRAALVM_HOME/bin/node --jvm --polyglot server.js &
sleep 10
diff --git a/README.md b/README.md
index 73157cf45..a246d25df 100644
--- a/README.md
+++ b/README.md
@@ -235,10 +235,6 @@ cd graalvm-demos
polyglot-debug
|
Demonstrates how to debug a polyglot Java and JavaScript application using GraalVM Tools for Java in VS Code Technologies: Java, JavaScript, Maven, GraalVM Extension Pack |
-
- polyglot-javascript-java-r
|
- Demonstrates the polyglot capabilities of GraalVM and how to run a JavaScript-Java-R application Technologies: JavaScript, Node.js, Java, R Reference: Top 10 Things To Do With GraalVM |
-
functionGraphDemo
|
Demonstrates how to run a polyglot JavaScript-Java-R application on the GraalVM Node.js runtime Technologies: JavaScript, Node.js, Java, R |
diff --git a/polyglot-javascript-java-r/README.md b/archive/polyglot-javascript-java-r/README.md
similarity index 90%
rename from polyglot-javascript-java-r/README.md
rename to archive/polyglot-javascript-java-r/README.md
index 9e9d1cb42..b990d91a4 100644
--- a/polyglot-javascript-java-r/README.md
+++ b/archive/polyglot-javascript-java-r/README.md
@@ -1,6 +1,6 @@
-# Polyglot JavaScript Application mixing Java and R
+# Polyglot JavaScript Application Mixing Java and R
-This is a multi-language JavaScript application mixing Java and R to demonstrate GraalVM's polyglot capabilities.
+This is a multi-language JavaScript application mixing Java and R to demonstrate GraalVM's polyglot capabilities.
### Prerequisites
@@ -52,3 +52,5 @@ Open the URL the application prints at the startup in Chrome browser, and start
This is a sample application that for brevity contains reasonably large snippets of code inside the strings.
This is not the best approach for structuring polyglot apps, but the easiest to show in a single file.
+
+This demo application is referenced from the blog post [Top 10 Things To Do With GraalVM](https://medium.com/graalvm/graalvm-ten-things-12d9111f307d#656f).
\ No newline at end of file
diff --git a/polyglot-javascript-java-r/build.sh b/archive/polyglot-javascript-java-r/build.sh
similarity index 70%
rename from polyglot-javascript-java-r/build.sh
rename to archive/polyglot-javascript-java-r/build.sh
index 32c543563..da729549a 100755
--- a/polyglot-javascript-java-r/build.sh
+++ b/archive/polyglot-javascript-java-r/build.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -ex
-npm install
+npm install
\ No newline at end of file
diff --git a/polyglot-javascript-java-r/package.json b/archive/polyglot-javascript-java-r/package.json
similarity index 100%
rename from polyglot-javascript-java-r/package.json
rename to archive/polyglot-javascript-java-r/package.json
diff --git a/archive/polyglot-javascript-java-r/run.sh b/archive/polyglot-javascript-java-r/run.sh
new file mode 100755
index 000000000..75dd69727
--- /dev/null
+++ b/archive/polyglot-javascript-java-r/run.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -ex
+
+$JAVA_HOME/bin/node --jvm --polyglot server.js
\ No newline at end of file
diff --git a/polyglot-javascript-java-r/server.js b/archive/polyglot-javascript-java-r/server.js
similarity index 100%
rename from polyglot-javascript-java-r/server.js
rename to archive/polyglot-javascript-java-r/server.js
diff --git a/polyglot-javascript-java-r/run.sh b/polyglot-javascript-java-r/run.sh
deleted file mode 100755
index 228744186..000000000
--- a/polyglot-javascript-java-r/run.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env bash
-
-set -ex
-
-$JAVA_HOME/bin/node --jvm --polyglot server.js