Skip to content

Commit

Permalink
Update CI workflow to not run monthly; Remove demo entry from top-lev…
Browse files Browse the repository at this point in the history
…el README
  • Loading branch information
olyagpl committed Dec 17, 2024
1 parent be37153 commit 33e41e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ cd graalvm-demos
<td align="left" width="70%">Demonstrates how the Graal compiler can achieve better performance for highly abstracted programs like those using Streams, Lambdas<br><strong>Technologies: </strong>Graal compiler, C2<br><strong>Reference: </strong><a href="https://luna.oracle.com/lab/d502417b-df66-45be-9fed-a3ac8e3f09b1/steps#task-2-run-demos-java-microbenchmark-harness-jmh">Simple Java Stream Benchmark</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-image-configure-examples/">native-image-configure-examples</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/streams.yml"><img alt="streams" src="https://github.com/graalvm/graalvm-demos/actions/workflows/streams.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how you can influence the classes initialization at the image build time<br><strong>Technologies: </strong>Native Image, Maven<br><strong>Reference: </strong><a href="https://medium.com/graalvm/understanding-class-initialization-in-graalvm-native-image-generation-d765b7e4d6ed">Understanding Class Initialization in GraalVM Native Image Generation</a></td>
<td align="left" width="30%"><a href="/multithreading-demo/">multithreading-demo</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/streams.yml"><img alt="streams" src="https://github.com/graalvm/graalvm-demos/actions/workflows/streams.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to optimize a Java application that does synchronous and asynchronous threads execution<br><strong>Technologies: </strong>Native Image Build Reports, Native Build Tools Maven plugin <br><strong>Reference: </strong><a href="https://medium.com/graalvm/making-sense-of-native-image-contents-741a688dab4d">Making sense of Native Image contents</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/native-netty-plot/">native-netty-plot</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-netty-plot.yml"><img alt="native-netty-plot" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-netty-plot.yml/badge.svg" /></a></td>
Expand Down

0 comments on commit 33e41e7

Please sign in to comment.