Skip to content

Commit

Permalink
Refactor Native Image Reflection Configuration with Tracing Agent demo
Browse files Browse the repository at this point in the history
  • Loading branch information
olyagpl committed Nov 27, 2024
1 parent 2a76e29 commit b929c68
Show file tree
Hide file tree
Showing 25 changed files with 134 additions and 213 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/native-image-reflection-example.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/access-environment-variables/**'
- '.github/workflows/native-image-access-environment-variables.yml'
- '.github/workflows/native-image/access-environment-variables.yml'
pull_request:
paths:
- 'native-image/access-environment-variables/**'
- '.github/workflows/native-image-access-environment-variables.yml'
- '.github/workflows/native-image/access-environment-variables.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: native-image/add-jfr-support
name: native-image/add-jfr
on:
push:
paths:
- 'native-image/add-jfr-support/**'
- '.github/workflows/native-image-add-jfr-support.yml'
- 'native-image/add-jfr/**'
- '.github/workflows/native-image/add-jfr.yml'
pull_request:
paths:
- 'native-image/add-jfr-support/**'
- '.github/workflows/native-image-add-jfr-support.yml'
- 'native-image/add-jfr/**'
- '.github/workflows/native-image/add-jfr.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: Run 'native-image/add-jfr-support'
name: Run 'native-image/add-jfr'
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
Expand All @@ -29,7 +29,7 @@ jobs:
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run 'native-image/add-jfr-support'
- name: Run 'native-image/add-jfr'
run: |
cd native-image/add-jfr-support
cd native-image/add-jfr
./run.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: native-image/add-jmx-support
name: native-image/add-jmx
on:
push:
paths:
- 'native-image/add-jmx-support/**'
- '.github/workflows/native-image-add-jmx-support.yml'
- 'native-image/add-jmx/**'
- '.github/workflows/native-image/add-jmx.yml'
pull_request:
paths:
- 'native-image/add-jmx-support/**'
- '.github/workflows/native-image-add-jmx-support.yml'
- 'native-image/add-jmx/**'
- '.github/workflows/native-image/add-jmx.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: Run 'native-image/add-jmx-support'
name: Run 'native-image/add-jmx'
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
Expand All @@ -29,9 +29,9 @@ jobs:
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run 'native-image/add-jmx-support'
- name: Run 'native-image/add-jmx'
run: |
cd native-image/add-jmx-support
cd native-image/add-jmx
wget -q https://github.com/jiaqi/jmxterm/releases/download/v1.0.2/jmxterm-1.0.2-uber.jar
javac SimpleJmx.java
native-image -Ob --enable-monitoring=jmxserver,jmxclient,jvmstat -H:DynamicProxyConfigurationFiles=proxy-config.json SimpleJmx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/add-logging/**'
- '.github/workflows/native-image-add-logging.yml'
- '.github/workflows/native-image/add-logging.yml'
pull_request:
paths:
- 'native-image/add-logging/**'
- '.github/workflows/native-image-add-logging.yml'
- '.github/workflows/native-image/add-logging.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-from-jar/**'
- '.github/workflows/native-image-build-from-jar.yml'
- '.github/workflows/native-image/build-from-jar.yml'
pull_request:
paths:
- 'native-image/build-from-jar/**'
- '.github/workflows/native-image-build-from-jar.yml'
- '.github/workflows/native-image/build-from-jar.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-java-modules/**'
- '.github/workflows/native-image-build-java-modules.yml'
- '.github/workflows/native-image/build-java-modules.yml'
pull_request:
paths:
- 'native-image/build-java-modules/**'
- '.github/workflows/native-image-build-java-modules.yml'
- '.github/workflows/native-image-build/java-modules.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-shared-library/**'
- '.github/workflows/native-image-build-shared-library.yml'
- '.github/workflows/native-image/build-shared-library.yml'
pull_request:
paths:
- 'native-image/build-shared-library/**'
- '.github/workflows/native-image-build-shared-library.yml'
- '.github/workflows/native-image/build-shared-library.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/native-image/build-static-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: native-image/build-static-images
on:
push:
paths:
- 'native-image/build-static-images/**'
- '.github/workflows/native-image/build-static-images.yml'
pull_request:
paths:
- 'native-image/build-static-images/**'
- '.github/workflows/native-image/build-static-images.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run-static:
name: Run fully static
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
java-version: ['21', '24-ea']
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java-version }}
native-image-musl: 'true'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run fully static
run: |
cd native-image/build-static-images
javac EnvMap.java
native-image --static --libc=musl EnvMap -o static-envmap
run-mostly-static:
name: Run mostly-static
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '24-ea'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run mostly-static
run: |
cd native-image/build-static-images
javac EnvMap.java
native-image -Ob --static-nolibc EnvMap -o mostly-static-envmap
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- 'native-image/build-with-js-embedded/**'
- '.github/workflows/native-image-build-with-js-embedded.yml'
- '.github/workflows/native-image/build-with-js-embedded.yml'
pull_request:
paths:
- 'native-image/build-with-js-embedded/**'
- '.github/workflows/native-image-build-with-js-embedded.yml'
- '.github/workflows/native-image/build-with-js-embedded.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/native-image/configure-with-tracing-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: native-image/configure-with-tracing-agent
on:
push:
paths:
- 'native-image/configure-with-tracing-agent/**'
- '.github/workflows/native-image/configure-with-tracing-agent.yml'
pull_request:
paths:
- 'native-image/configure-with-tracing-agent/**'
- '.github/workflows/native-image/configure-with-tracing-agent.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: Run 'native-image/configure-with-tracing-agent
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
java-version: ['21', '24-ea']
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java-version }}
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run 'native-image/configure-with-tracing-agent'
run: |
cd native-image/configure-with-tracing-agent
./run.sh
Loading

0 comments on commit b929c68

Please sign in to comment.