From 3a5cfdc3575cfca5b8dd55794faaebe195f486af Mon Sep 17 00:00:00 2001 From: HeroCC Date: Sat, 3 Oct 2020 22:28:58 +0200 Subject: [PATCH] Build on Java 1.8 and 1.11 --- .github/workflows/gradle.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9e0f63a13..5f45bcd47 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -11,6 +11,9 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + java: [1.8, 1.11] steps: - name: Checkout @@ -18,23 +21,23 @@ jobs: - name: Setup Java JDK uses: actions/setup-java@v1.4.2 with: - java-version: 1.8 + java-version: ${{ matrix.java }} - name: Cache Gradle uses: actions/cache@v2 with: path: | ~/.gradle/caches ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | - ${{ runner.os }}-gradle- + ${{ runner.os }}-${{ matrix.java }}-gradle- - name: Cache local Maven repository uses: actions/cache@v2 with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-maven- + ${{ runner.os }}-${{ matrix.java }}-maven- - name: Cache BuildTools decompiled code uses: actions/cache@v2 with: