mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Build with GraalVM Native Image.
This commit is contained in:
parent
e8d3734185
commit
d04613eff3
1 changed files with 30 additions and 0 deletions
30
.github/workflows/maven-build-native.yml
vendored
Normal file
30
.github/workflows/maven-build-native.yml
vendored
Normal 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
|
Loading…
Reference in a new issue