Skip to content

native-hello-module #80

native-hello-module

native-hello-module #80

name: native-hello-module
on:
push:
paths:
- 'native-hello-module/**'
- '.github/workflows/native-hello-module.yml'
pull_request:
paths:
- 'native-hello-module/**'
- '.github/workflows/native-hello-module.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: Run 'native-hello-module'
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
java-version: ['17', 'dev']
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java-version }}
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
native-image-job-reports: 'true'
- name: Run 'native-hello-module'
run: |
cd native-hello-module
mvn --no-transfer-progress package
native-image --module-path target/HelloModule-1.0-SNAPSHOT.jar --module HelloModule
./hellomodule