|
96 | 96 | key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }} |
97 | 97 | - name: Set up JDK 11 |
98 | 98 | |
| 99 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 100 | + with: |
| 101 | + distribution: 'temurin' |
| 102 | + java-version: 11 |
| 103 | + - name: Set up JDK 17 |
| 104 | + |
| 105 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
99 | 106 | with: |
100 | 107 | distribution: 'temurin' |
101 | 108 | java-version: 11 |
@@ -138,6 +145,13 @@ jobs: |
138 | 145 | key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }} |
139 | 146 | - name: Set up JDK 11 |
140 | 147 | |
| 148 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 149 | + with: |
| 150 | + distribution: 'temurin' |
| 151 | + java-version: 11 |
| 152 | + - name: Set up JDK 17 |
| 153 | + |
| 154 | + if: ${{ !startsWith( inputs.branch, 'wip/2' ) }} |
141 | 155 | with: |
142 | 156 | distribution: 'temurin' |
143 | 157 | java-version: 11 |
@@ -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. |
248 | 261 | - name: Set up JDK 11 |
249 | 262 | |
250 | 263 | with: |
251 | 264 | distribution: 'temurin' |
252 | 265 | java-version: 11 |
253 | 266 | check-latest: true |
| 267 | + if: ${{ startsWith( inputs.branch, 'wip/2' ) }} |
| 268 | + - name: Set up JDK 17 |
| 269 | + |
| 270 | + with: |
| 271 | + distribution: 'temurin' |
| 272 | + java-version: 11 |
| 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