@@ -14,20 +14,19 @@ permissions:
1414env :
1515 NATIVE_IMAGE_OPTIONS : ' -J-Xmx16g'
1616jobs :
17- run :
18- name : ' graalpy-spring-boot-guide'
17+ maven :
18+ name : ' graalpy-spring-boot-guide on Maven '
1919 runs-on : ubuntu-latest
20- timeout-minutes : 45
20+ timeout-minutes : 30
2121 steps :
2222 - uses : actions/checkout@v4
2323 - uses : graalvm/setup-graalvm@v1
2424 with :
25- java-version : ' 24 .0.0 '
25+ java-version : ' 21 .0.6 '
2626 distribution : ' graalvm'
2727 github-token : ${{ secrets.GITHUB_TOKEN }}
2828 cache : ' maven'
29- native-image-job-reports : ' true'
30- - name : Build, test, and run 'graalpy-spring-boot-guide' using Maven
29+ - name : Build, test, and run 'graalpy-spring-boot-guide'
3130 run : |
3231 cd graalpy/graalpy-spring-boot-guide
3332 git clean -fdx
3736 sleep 30
3837 curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
3938 kill $sbpid
40- - name : Build, test, and run 'graalpy-spring-boot-guide' using Gradle
39+ - uses : graalvm/setup-graalvm@v1
40+ with :
41+ java-version : ' 24.0.0'
42+ distribution : ' graalvm'
43+ github-token : ${{ secrets.GITHUB_TOKEN }}
44+ cache : ' maven'
45+ set-java-home : false # keep using previous JAVA_HOME, but use different GRAALVM_JAVA_HOME for generating native image
46+ native-image-job-reports : ' true'
47+ - name : Build and run native 'graalpy-spring-boot-guide'
48+ run : |
49+ cd graalpy/graalpy-spring-boot-guide
50+ git clean -fdx
51+ ./mvnw --no-transfer-progress clean -DskipTests -Pnative native:compile
52+ ./target/graalpy-springboot &
53+ sbpid="$!"
54+ sleep 20
55+ curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
56+ kill $sbpid
57+ gradle :
58+ name : ' graalpy-spring-boot-guide on Gradle'
59+ runs-on : ubuntu-latest
60+ timeout-minutes : 30
61+ steps :
62+ - uses : actions/checkout@v4
63+ - uses : graalvm/setup-graalvm@v1
64+ with :
65+ java-version : ' 21.0.6'
66+ distribution : ' graalvm'
67+ github-token : ${{ secrets.GITHUB_TOKEN }}
68+ cache : ' gradle'
69+ - name : Build, test, and run 'graalpy-spring-boot-guide'
4170 run : |
4271 cd graalpy/graalpy-spring-boot-guide
4372 git clean -fdx
@@ -47,12 +76,20 @@ jobs:
4776 sleep 30
4877 curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
4978 kill $sbpid
50- - name : Build and run native 'graalpy-spring-boot-guide' using Maven
79+ - uses : graalvm/setup-graalvm@v1
80+ with :
81+ java-version : ' 24.0.0'
82+ distribution : ' graalvm'
83+ github-token : ${{ secrets.GITHUB_TOKEN }}
84+ cache : ' gradle'
85+ set-java-home : false # keep using previous JAVA_HOME, but use different GRAALVM_HOME for generating native image
86+ native-image-job-reports : ' true'
87+ - name : Build and run native 'graalpy-mispring-boot-guide'
5188 run : |
5289 cd graalpy/graalpy-spring-boot-guide
5390 git clean -fdx
54- ./mvnw --no-transfer-progress clean -DskipTests -Pnative native:compile
55- ./target/graalpy-springboot &
91+ ./gradlew nativeCompile
92+ ./build/native/nativeCompile/demo &
5693 sbpid="$!"
5794 sleep 20
5895 curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
0 commit comments