From 33e41e7e93812647a000abd37bd4fc86c4cedec1 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Mon, 16 Dec 2024 15:17:22 +0200 Subject: [PATCH] Update CI workflow to not run monthly; Remove demo entry from top-level README --- ...archive-class-initialization-examples.yml} | 23 ++++++++----------- README.md | 4 ++-- 2 files changed, 11 insertions(+), 16 deletions(-) rename .github/workflows/{native-image-configure-examples.yml => archive-class-initialization-examples.yml} (51%) diff --git a/.github/workflows/native-image-configure-examples.yml b/.github/workflows/archive-class-initialization-examples.yml similarity index 51% rename from .github/workflows/native-image-configure-examples.yml rename to .github/workflows/archive-class-initialization-examples.yml index 425b591e5..2dcef1c60 100644 --- a/.github/workflows/native-image-configure-examples.yml +++ b/.github/workflows/archive-class-initialization-examples.yml @@ -1,41 +1,36 @@ -name: native-image-configure-examples +name: archive/class-initialization-examples on: push: paths: - - 'native-image-configure-examples/**' - - '.github/workflows/native-image-configure-examples.yml' + - 'archive/class-initialization-examples/**' + - '.github/workflows/archive-class-initialization-examples.yml' pull_request: paths: - - 'native-image-configure-examples/**' - - '.github/workflows/native-image-configure-examples.yml' - schedule: - - cron: "0 0 1 * *" # run every month + - 'archive/class-initialization-examples/**' + - '.github/workflows/archive-class-initialization-examples.yml' workflow_dispatch: permissions: contents: read jobs: run: - name: Run 'native-image-configure-examples' + name: Run 'archive/class-initialization-examples' runs-on: ubuntu-latest timeout-minutes: 15 - strategy: - matrix: - java-version: ['21', 'latest-ea'] steps: - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 with: - java-version: ${{ matrix.java-version }} + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} cache: 'maven' - name: Run 'configure-at-runtime-example' run: | - cd native-image-configure-examples/configure-at-runtime-example + cd archive/class-initialization-examples/configure-at-runtime-example mvn --no-transfer-progress package ./target/runtime-example - name: Run 'configure-at-buildtime-example' run: | - cd native-image-configure-examples/configure-at-buildtime-example + cd archive/class-initialization-examples/configure-at-buildtime-example mvn --no-transfer-progress package ./target/buildtime-example diff --git a/README.md b/README.md index 378194107..05e65e6b0 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,8 @@ cd graalvm-demos Demonstrates how the Graal compiler can achieve better performance for highly abstracted programs like those using Streams, Lambdas
Technologies: Graal compiler, C2
Reference: Simple Java Stream Benchmark - native-image-configure-examples
streams - Demonstrates how you can influence the classes initialization at the image build time
Technologies: Native Image, Maven
Reference: Understanding Class Initialization in GraalVM Native Image Generation + multithreading-demo
streams + Demonstrates how to optimize a Java application that does synchronous and asynchronous threads execution
Technologies: Native Image Build Reports, Native Build Tools Maven plugin
Reference: Making sense of Native Image contents native-netty-plot
native-netty-plot