From 0db8057cddf6af07cc68a1b5bb04eac10b7847ed Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Thu, 13 May 2021 07:42:43 +0200 Subject: [PATCH] Build CI with Java 8 and 11 Signed-off-by: Hannes Achleitner --- .github/workflows/assembleFlavors.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/assembleFlavors.yml b/.github/workflows/assembleFlavors.yml index 12c4feefbf..b3e0e90d50 100644 --- a/.github/workflows/assembleFlavors.yml +++ b/.github/workflows/assembleFlavors.yml @@ -10,13 +10,15 @@ jobs: strategy: fail-fast: false matrix: + java_version: [ 8, 11 ] flavor: [ Generic, Gplay ] steps: - uses: actions/checkout@v2 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 + - name: set up JDK ${{ matrix.java_version }} + uses: actions/setup-java@v2 with: - java-version: 1.8 + distribution: "adopt" + java-version: ${{ matrix.java_version }} - name: Build ${{ matrix.flavor }} run: | echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties