Skip to content

Commit

Permalink
Merge pull request #11 from not-coded/renovate/actions-setup-java-4.x
Browse files Browse the repository at this point in the history
Update actions/setup-java action to v4
specify distribution
  • Loading branch information
not-coded authored Nov 22, 2024
2 parents d1d3698 + fe6773a commit f29a688
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@ jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
21,
]
# and run on both Linux and Windows

distribution: [
"temurin",
]

os: [ubuntu-20.04, windows-2022]

runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
Expand Down

0 comments on commit f29a688

Please sign in to comment.