File tree Expand file tree Collapse file tree 3 files changed +62
-8
lines changed
Expand file tree Collapse file tree 3 files changed +62
-8
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,20 @@ name: build
77on : [pull_request, push]
88
99jobs :
10- build :
11- runs-on : ubuntu-24.04
10+ build-java-17 :
11+ name : Build on Java 17
12+ runs-on : ubuntu-latest
1213 steps :
1314 - name : Checkout repository
1415 uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
1518 - name : Validate Gradle wrapper
1619 uses : gradle/actions/wrapper-validation@v4
1720 - name : Setup JDK
1821 uses : actions/setup-java@v4
1922 with :
20- java-version : [ '17', '21']
23+ java-version : ' 17'
2124 distribution : ' microsoft'
2225 - name : Make Gradle wrapper executable
2326 run : chmod +x ./gradlew
2932 name : Artifacts
3033 path : build/libs/*.jar
3134 if-no-files-found : error
35+
36+ build-java-21 :
37+ name : Build on Java 21
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : Checkout repository
41+ uses : actions/checkout@v4
42+ with :
43+ fetch-depth : 0
44+ - name : Validate Gradle wrapper
45+ uses : gradle/actions/wrapper-validation@v4
46+ - name : Setup JDK
47+ uses : actions/setup-java@v4
48+ with :
49+ java-version : ' 21'
50+ distribution : ' microsoft'
51+ - name : Make Gradle wrapper executable
52+ run : chmod +x ./gradlew
53+ - name : Build
54+ run : ./gradlew build
55+ - name : Capture build artifacts
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : Artifacts
59+ path : build/libs/*.jar
60+ if-no-files-found : error
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Compile Java
22on : [pull_request]
33
44jobs :
5- compile :
6- name : Compile
5+ compile-java-17 :
6+ name : Compile on Java 17
77 runs-on : ubuntu-latest
88 steps :
99 - name : Checkout repository
1515 - name : Setup JDK
1616 uses : actions/setup-java@v4
1717 with :
18- java-version : ['17', '21']
18+ java-version : ' 17'
19+ distribution : ' microsoft'
20+ - name : Make Gradle wrapper executable
21+ run : chmod +x ./gradlew
22+ - name : Compile
23+ run : ./gradlew compileJava
24+ - name : Compile client-side Java
25+ run : ./gradlew compileClientJava
26+
27+ compile-java-21 :
28+ name : Compile on Java 21
29+ runs-on : ubuntu-latest
30+ steps :
31+ - name : Checkout repository
32+ uses : actions/checkout@v4
33+ with :
34+ fetch-depth : 0
35+ - name : Validate Gradle wrapper
36+ uses : gradle/actions/wrapper-validation@v4
37+ - name : Setup JDK
38+ uses : actions/setup-java@v4
39+ with :
40+ java-version : ' 21'
1941 distribution : ' microsoft'
2042 - name : Make Gradle wrapper executable
2143 run : chmod +x ./gradlew
Original file line number Diff line number Diff line change 1- name : " Run TODO to Issue"
2- on : [push]
1+ name : Run TODO to Issue
2+ on :
3+ push :
4+ branches :
5+ - master
36jobs :
47 build :
58 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments