Build with GraalVM Native Image.

This commit is contained in:
Fabio Niephaus 2023-01-12 09:46:39 +01:00
parent e8d3734185
commit d04613eff3
No known key found for this signature in database
GPG key ID: F21CF5275F31DFD6

View file

@ -0,0 +1,30 @@
name: Native CI with Maven and GraalVM Native Image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
steps:
- uses: actions/checkout@v3
- name: Set up GraalVM JDK ${{matrix.java}}
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: ${{matrix.java}}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: maven
native-image-job-reports: 'true'
native-image-pr-reports: 'true'
- name: Build with Maven Wrapper
run: ./mvnw -B -ntp -Pnative native:compile