File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,16 +20,15 @@ jobs:
2020 runs-on : ${{ matrix.os }}
2121 strategy :
2222 matrix :
23+ java_version : [ '11', '17' ]
2324 os : [ ubuntu-latest, windows-latest, macOS-latest ]
2425 steps :
2526 - uses : actions/checkout@v2
26- - name : Set up JDKs
27+ - name : Set up JDK ${{ matrix.java_version }}
2728 uses : actions/setup-java@v5
2829 with :
2930 distribution : ' temurin'
30- java-version : |
31- 11
32- 17
31+ java-version : ${{ matrix.java_version }}
3332 - name : Grant execute permission for gradlew
3433 run : chmod +x gradlew
3534 - name : Build with Gradle
@@ -40,13 +39,11 @@ jobs:
4039 runs-on : ubuntu-latest
4140 steps :
4241 - uses : actions/checkout@v2
43- - name : Set up JDKs
42+ - name : Set up JDK 17
4443 uses : actions/setup-java@v5
4544 with :
4645 distribution : ' temurin'
47- java-version : |
48- 11
49- 17
46+ java-version : 17
5047 - name : Grant execute permission for gradlew
5148 run : chmod +x gradlew
5249 - name : Jar
Original file line number Diff line number Diff line change 4040 - name : Checkout repository
4141 uses : actions/checkout@v3
4242
43- - name : Set up JDKs
44- uses : actions/setup-java@v5
45- with :
46- distribution : ' temurin'
47- java-version : |
48- 11
49- 17
50-
5143 # Initializes the CodeQL tools for scanning.
5244 - name : Initialize CodeQL
5345 uses : github/codeql-action/init@v2
Original file line number Diff line number Diff line change 2020 uses : actions/setup-java@v5
2121 with :
2222 distribution : ' temurin'
23- java-version : |
24- 11
25- 17
23+ java-version : 17
2624 - name : Grant execute permission for gradlew
2725 run : chmod +x gradlew
2826 - name : Jar
You can’t perform that action at this time.
0 commit comments