-
Notifications
You must be signed in to change notification settings - Fork 158
40 lines (40 loc) · 1.09 KB
/
spring-native-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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