Skip to content

Commit

Permalink
Revise graalwasm-starter demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Sep 23, 2024
1 parent 5690b1c commit 64a9abb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/graalwasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
native-image-job-reports: 'true'
- name: Build, test and run 'graalwasm/graalwasm-starter' using Maven
- name: Build, test, and run 'graalwasm-starter' using Maven
run: |
cd graalwasm/graalwasm-starter
./mvnw --no-transfer-progress test
./mvnw --no-transfer-progress exec:java
- name: Build, test and run 'graalwasm/graalwasm-starter' using Gradle
- name: Build, test, and run 'graalwasm-starter' using Gradle
run: |
cd graalwasm/graalwasm-starter
./gradlew test
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
4 changes: 2 additions & 2 deletions graalwasm/graalwasm-starter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GraalWasm Quick Start

This demo illustrates how GraalWasm can be used to embed a WebAssembly module in a Java application.
A minimal Java application that embeds a WebAssembly module with GraalWasm.

## Preparation

Expand Down Expand Up @@ -43,6 +43,6 @@ To execute the main method, run:

The WebAssembly is stored in the resource file `add-two.wasm`.
You can examine its textual representation in the resource file `add-two.wat`.
If you want to experiment with and tweak the WebAssembly module, then you will need to rebuild the `add-two.wasm` file from the `add-two.wat` file.
If you want to experiment with and tweak the WebAssembly module, you will need to rebuild the `add-two.wasm` file from the `add-two.wat` file.
For that, you can use the `wat2wasm` tool from the [wabt toolkit](https://github.com/WebAssembly/wabt).
You can also use [this web app](https://webassembly.github.io/wabt/demo/wat2wasm/) to run `wat2wasm` in your browser instead of installing `wabt`.

0 comments on commit 64a9abb

Please sign in to comment.