From d0599b99ec0772f19ee65ed38f5fd6f43771edc5 Mon Sep 17 00:00:00 2001 From: Speiger Date: Thu, 15 Jun 2023 18:09:14 +0200 Subject: [PATCH] Upgraded Build Script and support now java19/20 --- .github/workflows/build_action.yml | 65 +++++++++++++++--------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build_action.yml b/.github/workflows/build_action.yml index ff8ca7a..479881a 100644 --- a/.github/workflows/build_action.yml +++ b/.github/workflows/build_action.yml @@ -1,32 +1,33 @@ -name: Latest Build - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - strategy: - fail-fast: false - matrix: - jdk: [8, 11, 14, 16, 17, 18] - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up JDK ${{ matrix.jdk }} - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.jdk }} - - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - - - name: Make gradlew executable - run: chmod +x ./gradlew - - - name: Build with Gradle - run: ./gradlew build +name: Latest Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + strategy: + fail-fast: false + matrix: + jdk: [8, 11, 16, 17, 18, 19, 20] + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK ${{ matrix.jdk }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build