Skip to content

Commit 9bbbc1e

Browse files
committed
Refactor Build Java Modules Native Imaeg demo
1 parent f73ca7c commit 9bbbc1e

File tree

13 files changed

+24
-103
lines changed

13 files changed

+24
-103
lines changed

.github/workflows/native-image-add-jfr-support.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
distribution: 'graalvm'
3030
github-token: ${{ secrets.GITHUB_TOKEN }}
3131
native-image-job-reports: 'true'
32-
- name: Run 'native-jfr-demo'
32+
- name: Run 'native-image/add-jfr-support'
3333
run: |
3434
cd native-image/add-jfr-support
3535
./run.sh

.github/workflows/native-image-add-jmx-support.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
distribution: 'graalvm'
3030
github-token: ${{ secrets.GITHUB_TOKEN }}
3131
native-image-job-reports: 'true'
32-
- name: Run 'native-image-jmx-demo'
32+
- name: Run 'native-image/add-jmx-support'
3333
run: |
3434
cd native-image/add-jmx-support
3535
wget -q https://github.com/jiaqi/jmxterm/releases/download/v1.0.2/jmxterm-1.0.2-uber.jar
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: native-hello-module
1+
name: native-image/build-java-modules
22
on:
33
push:
44
paths:
5-
- 'native-hello-module/**'
6-
- '.github/workflows/native-hello-module.yml'
5+
- 'native-image/build-java-modules/**'
6+
- '.github/workflows/native-image-build-java-modules.yml'
77
pull_request:
88
paths:
9-
- 'native-hello-module/**'
10-
- '.github/workflows/native-hello-module.yml'
9+
- 'native-image/build-java-modules/**'
10+
- '.github/workflows/native-image-build-java-modules.yml'
1111
schedule:
1212
- cron: "0 0 1 * *" # run every month
1313
workflow_dispatch:
1414
permissions:
1515
contents: read
1616
jobs:
1717
run:
18-
name: Run 'native-hello-module'
18+
name: Run 'native-image/build-java-modules'
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 15
2121
strategy:
2222
matrix:
23-
java-version: ['21', 'dev']
23+
java-version: ['21', '24-ea']
2424
steps:
2525
- uses: actions/checkout@v4
2626
- uses: graalvm/setup-graalvm@v1
@@ -30,9 +30,7 @@ jobs:
3030
github-token: ${{ secrets.GITHUB_TOKEN }}
3131
cache: 'maven'
3232
native-image-job-reports: 'true'
33-
- name: Run 'native-hello-module'
33+
- name: Run 'native-image/build-java-modules'
3434
run: |
35-
cd native-hello-module
36-
mvn --no-transfer-progress package
37-
native-image --module-path target/HelloModule-1.0-SNAPSHOT.jar --module HelloModule
38-
./hellomodule
35+
cd native-image/build-java-modules
36+
./run.sh

manifest.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

native-hello-module/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

native-hello-module/README.md

Lines changed: 0 additions & 83 deletions
This file was deleted.
-105 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
hellomodule
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Build Java Modules into a Native Executable
2+
3+
You can find the steps to run this demo on [the website](https://www.graalvm.org/latest/reference-manual/native-image/guides/build-java-modules-into-native-executable/).
File renamed without changes.

0 commit comments

Comments
 (0)