Skip to content

Commit 3b65c0d

Browse files
committed
Update GHA
1 parent a44b808 commit 3b65c0d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/mavenpublish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Maven Package
33

44
on:
55
push:
6+
workflow_dispatch:
67

78
jobs:
89
build:
@@ -16,7 +17,7 @@ jobs:
1617
apt-get -y --no-install-recommends install
1718
siege
1819

19-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2021

2122
- name: Checkout utils
2223
uses: actions/checkout@v2
@@ -26,11 +27,12 @@ jobs:
2627

2728
- run: make -C utils
2829

29-
- name: Set up JDK 1.8
30-
uses: actions/setup-java@v1
30+
- name: Set up JDK 17
31+
uses: actions/setup-java@v2
3132
with:
32-
java-version: 1.8
33-
- uses: actions/cache@v2
33+
java-version: 17
34+
distribution: 'zulu'
35+
- uses: actions/cache@v3
3436
with:
3537
path: ~/.m2/repository
3638
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -43,7 +45,7 @@ jobs:
4345
run: |
4446
P=$(utils/start-bg.sh \
4547
-s "Started Application" \
46-
java -jar target/spring-boot-0.0.1-SNAPSHOT.jar)
48+
java -jar target/spring-boot-initial-0.0.1-SNAPSHOT.jar)
4749
curl localhost:8080 | grep "Greetings from Spring Boot!"
4850
utils/bench.sh http://localhost:8080
4951
kill $P
@@ -65,7 +67,7 @@ jobs:
6567
-XX:+CRTraceStartupTime \
6668
-Djdk.crac.trace-startup-time=true \
6769
--add-opens java.base/java.lang=ALL-UNNAMED \
68-
-jar target/spring-boot-0.0.1-SNAPSHOT.jar)
70+
-jar target/spring-boot-initial-0.0.1-SNAPSHOT.jar)
6971
7072
# warmup the service
7173
utils/bench.sh http://localhost:8080
@@ -83,5 +85,5 @@ jobs:
8385
8486
- name: Test C/RaC startup time
8587
run:
86-
timeout 3 bash -c "utils/lib/javatime ; ${{ env.JDK }}/bin/java -XX:CRaCRestoreFrom=cr"
88+
timeout 3 bash -c "utils/javatime ; ${{ env.JDK }}/bin/java -XX:CRaCRestoreFrom=cr"
8789
| utils/sel.awk -v from=prestart -v to=restore-finish

0 commit comments

Comments
 (0)