From 52c3281a67ac1383f6b388f86a36ce82e85c17d0 Mon Sep 17 00:00:00 2001 From: logwet Date: Wed, 20 Oct 2021 22:50:33 +1100 Subject: [PATCH] Update build job workflow to use adopt jdk --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee0105c..2577bec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: matrix: # Use these Java versions java: [ - 1.8, # Default build + 8, # Default build 11, 16 ] @@ -28,13 +28,15 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} + distribution: 'adopt' + cache: gradle - name: make gradle wrapper executable if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlew - name: build run: ./gradlew build - name: capture build artifacts - if: ${{ runner.os == 'Linux' && matrix.java == '1.8' }} # Only upload artifacts built from latest java on one OS + if: ${{ runner.os == 'Linux' && matrix.java == '8' }} # Only upload artifacts built from latest java on one OS uses: actions/upload-artifact@v2 with: name: Artifacts