|
94 | 94 | .gradle/wrapper |
95 | 95 | # refresh cache every month to avoid unlimited growth |
96 | 96 | key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }} |
| 97 | + - name: Set up JDK 11 |
| 98 | + |
| 99 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 100 | + with: |
| 101 | + distribution: 'temurin' |
| 102 | + java-version: 11 |
97 | 103 | - name: Set up JDK 17 |
98 | 104 | |
| 105 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
99 | 106 | with: |
100 | 107 | distribution: 'temurin' |
101 | 108 | java-version: 17 |
@@ -136,8 +143,15 @@ jobs: |
136 | 143 | .gradle/wrapper |
137 | 144 | # refresh cache every month to avoid unlimited growth |
138 | 145 | key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }} |
| 146 | + - name: Set up JDK 11 |
| 147 | + |
| 148 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 149 | + with: |
| 150 | + distribution: 'temurin' |
| 151 | + java-version: 11 |
139 | 152 | - name: Set up JDK 17 |
140 | 153 | |
| 154 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
141 | 155 | with: |
142 | 156 | distribution: 'temurin' |
143 | 157 | java-version: 17 |
@@ -244,13 +258,20 @@ jobs: |
244 | 258 | - name: Export path to JDK ${{ matrix.java.name }} |
245 | 259 | id: testjdk-exportpath |
246 | 260 | run: echo "::set-output name=path::${JAVA_HOME}" |
247 | | - # Always use JDK 11 to build the main code: that's what we use for releases. |
| 261 | + - name: Set up JDK 11 |
| 262 | + |
| 263 | + with: |
| 264 | + distribution: 'temurin' |
| 265 | + java-version: 11 |
| 266 | + check-latest: true |
| 267 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
248 | 268 | - name: Set up JDK 17 |
249 | 269 | |
250 | 270 | with: |
251 | 271 | distribution: 'temurin' |
252 | 272 | java-version: 17 |
253 | 273 | check-latest: true |
| 274 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
254 | 275 | - name: Export path to JDK 11 |
255 | 276 | id: mainjdk-exportpath |
256 | 277 | run: echo "::set-output name=path::${JAVA_HOME}" |
|
0 commit comments