Skip to content

Commit

Permalink
push.yml: set up Java before cloning the GitHub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Mar 26, 2024
1 parent 5d6a648 commit 8e48779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,44 @@ jobs:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
- uses: actions/checkout@v4
- run: ./gradlew build --console=plain --no-daemon --stacktrace

Java11-Linux:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew build --console=plain --no-daemon --stacktrace

Java17-MacOS:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: macOS-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- uses: actions/checkout@v4
- run: ./gradlew build --console=plain --no-daemon --stacktrace

Java21-Windows:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- run: ./gradlew build --console=plain --no-daemon --stacktrace
shell: bash

0 comments on commit 8e48779

Please sign in to comment.