File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,28 +11,28 @@ jobs:
1111 strategy :
1212 matrix :
1313 # Use these Java versions
14- java : [
15- 21 # Latest version
16- ]
14+ java : [ 21 ]
15+ distro : [ temurin ]
1716 # and run on both Linux and Windows
18- os : [ubuntu-latest]
17+ os : [ ubuntu-latest ]
1918 runs-on : ${{ matrix.os }}
2019 steps :
2120 - name : checkout repository
2221 uses : actions/checkout@v4
2322 - name : validate gradle wrapper
24- uses : gradle/actions/wrapper-validation@v3
23+ uses : gradle/actions/wrapper-validation@v4
2524 - name : setup jdk ${{ matrix.java }}
2625 uses : actions/setup-java@v4
2726 with :
27+ distribution : ${{ matrix.distro }}
2828 java-version : ${{ matrix.java }}
29- distribution : ' microsoft'
3029 - name : make gradle wrapper executable
3130 if : ${{ runner.os != 'Windows' }}
3231 run : chmod +x ./gradlew
3332 - name : build
3433 run : ./gradlew build
3534 - name : capture build artifacts
35+ if : ${{ runner.os == 'Linux' }}
3636 uses : actions/upload-artifact@v4
3737 with :
3838 name : Artifacts
You can’t perform that action at this time.
0 commit comments