Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-60094] Review and move polyglot-javascript-java-r to archive. #327

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ cd graalvm-demos
<td align="left" width="30%"><a href="/polyglot-debug/">polyglot-debug</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-debug.yml"><img alt="polyglot-debug" src="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-debug.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to debug a polyglot Java and JavaScript application using GraalVM Tools for Java in VS Code <br><strong>Technologies: </strong>Java, JavaScript, Maven, GraalVM Extension Pack</td>
</tr>
<tr>
<td align="left" width="30%"><a href="/polyglot-javascript-java-r/">polyglot-javascript-java-r</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-javascript-java-r.yml"><img alt="polyglot-javascript-java-r" src="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-javascript-java-r.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates the polyglot capabilities of GraalVM and how to run a JavaScript-Java-R application <br><strong>Technologies: </strong>JavaScript, Node.js, Java, R <br><strong>Reference: </strong><a href="https://medium.com/graalvm/graalvm-ten-things-12d9111f307d#656f">Top 10 Things To Do With GraalVM</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/functionGraphDemo/">functionGraphDemo</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/functionGraphDemo.yml"><img alt="functionGraphDemo" src="https://github.com/graalvm/graalvm-demos/actions/workflows/functionGraphDemo.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to run a polyglot JavaScript-Java-R application on the GraalVM Node.js runtime <br><strong>Technologies: </strong>JavaScript, Node.js, Java, R</td>
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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).
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -ex

npm install
npm install
5 changes: 5 additions & 0 deletions archive/polyglot-javascript-java-r/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -ex

$JAVA_HOME/bin/node --jvm --polyglot server.js
5 changes: 0 additions & 5 deletions polyglot-javascript-java-r/run.sh

This file was deleted.

Loading