Skip to content

spring-native-image #128

spring-native-image

spring-native-image #128

name: spring-native-image
on:
push:
paths:
- 'spring-native-image/**'
- '.github/workflows/spring-native-image.yml'
pull_request:
paths:
- 'spring-native-image/**'
- '.github/workflows/spring-native-image.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: Run 'spring-native-graal'
runs-on: ubuntu-latest
timeout-minutes: 20
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 'spring-native-image'
run: |
cd spring-native-image
mvn --no-transfer-progress package
mvn --no-transfer-progress native:compile -Pnative
./target/benchmark-jibber &
sleep 5
curl http://localhost:8080/jibber