Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed May 4, 2024
1 parent 8533d54 commit 8c1ba34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
java: [
21
22
]
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
Expand All @@ -30,6 +30,7 @@ jobs:
with:
java-version: |
${{ matrix.java }}
21
distribution: 'temurin'
- name: Grant execute permission for gradlew
if: ${{ runner.os != 'Windows' }}
Expand All @@ -39,14 +40,14 @@ jobs:
- name: Execute Gradle build
run: ./gradlew build
- name: Upload build reports
if: ${{ runner.os == 'Linux' && matrix.java == '21' && failure() }}
if: ${{ runner.os == 'Linux' && matrix.java == '22' && failure() }}
uses: actions/upload-artifact@v4
with:
name: build-reports
path: |
build/reports/
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '21' }}
if: ${{ runner.os == 'Linux' && matrix.java == '22' }}
uses: actions/upload-artifact@v4
with:
name: Artifacts
Expand Down

0 comments on commit 8c1ba34

Please sign in to comment.