Skip to content

Commit

Permalink
Switch to Azul Zulu JDK distribution
Browse files Browse the repository at this point in the history
It already has Java 21
  • Loading branch information
gabortim committed Oct 7, 2023
1 parent 0d09b4b commit 21b89fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 59 deletions.
69 changes: 12 additions & 57 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,84 +16,39 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
compile-jdk8:
compile:
needs: validation
continue-on-error: true
strategy:
fail-fast: false
matrix:
java-version: [8, 11, 17, 21]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
check-latest: true
distribution: 'zulu'
architecture: 'x64'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build
env:
GH_PACKAGE_REPO_TOKEN: ${{ secrets.GH_PACKAGE_REPO_TOKEN }}
compile-jdk11:
runs-on: ubuntu-latest
needs: validation
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
architecture: 'x64'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build
env:
GH_PACKAGE_REPO_TOKEN: ${{ secrets.GH_PACKAGE_REPO_TOKEN }}
compile-jdk17:
runs-on: ubuntu-latest
needs: validation
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
architecture: 'x64'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build
env:
GH_PACKAGE_REPO_TOKEN: ${{ secrets.GH_PACKAGE_REPO_TOKEN }}
# compile-jdk21:
# runs-on: ubuntu-latest
# needs: validation
# steps:
# - uses: actions/checkout@v4
# - name: Set up JDK 21
# uses: actions/setup-java@v3
# with:
# java-version: '21'
# distribution: 'temurin'
# architecture: 'x64'
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
# - name: Execute Gradle build
# run: ./gradlew build
# env:
# GH_PACKAGE_REPO_TOKEN: ${{ secrets.GH_PACKAGE_REPO_TOKEN }}
test:
runs-on: ubuntu-latest
needs: [ compile-jdk8, compile-jdk11 ]
needs: [ compile ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
distribution: 'zulu'
architecture: 'x64'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
distribution: 'zulu'
architecture: 'x64'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
distribution: 'zulu'
architecture: 'x64'
- name: Update repository index
run: sudo apt-get update
Expand Down

0 comments on commit 21b89fd

Please sign in to comment.