Skip to content

Commit 0eeb173

Browse files
committed
Update workflow
1 parent 9379c4a commit 0eeb173

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/mavenpublish.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ jobs:
5858
env:
5959
GITHUB_TOKEN: ${{ secrets.PACKAGES }}
6060

61-
- run: |
61+
- name: Prepare warm checkpoint
62+
run: |
6263
P=$(utils/start-bg.sh \
6364
-s "Started Application" \
6465
-e exitcode \
65-
$JDK/bin/java \
66+
jdk/bin/java \
6667
-Zcheckpoint:cr \
6768
-XX:+UnlockDiagnosticVMOptions \
6869
-XX:+CRTraceStartupTime \
@@ -74,22 +75,16 @@ jobs:
7475
jcmd $P JDK.checkpoint
7576
[ 137 = $(tail -f exitcode | head -n 1) ]
7677
77-
#- run:
78-
#timeout 30
79-
#jdk/bin/java
80-
#-Zcheckpoint:cr
81-
#-XX:+UnlockDiagnosticVMOptions
82-
#-XX:+CRTraceStartupTime
83-
#-Djdk.crac.trace-startup-time=true
84-
#-jar target/spring-boot-0.0.1-SNAPSHOT.jar
85-
#|| [ $? = 137 ]
86-
- run: |
78+
- name: Test on C/RaC
79+
run: |
8780
P=$(utils/start-bg.sh \
8881
-s "restore-finish" \
8982
jdk/bin/java -Zrestore:cr)
9083
curl localhost:8080 | grep "Greetings from Spring Boot!"
9184
utils/bench.sh http://localhost:8080
9285
kill $P
93-
- run:
86+
87+
- name: Test C/RaC startup time
88+
run:
9489
timeout 3 bash -c "jdk/lib/javatime ; jdk/bin/java -Zrestore:cr"
9590
| utils/sel.awk -v from=prestart -v to=restore-finish

0 commit comments

Comments
 (0)