Skip to content

Commit

Permalink
Update build job workflow to use adopt jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
logwet committed Oct 20, 2021
1 parent 8c2a400 commit 52c3281
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
# Use these Java versions
java: [
1.8, # Default build
8, # Default build
11,
16
]
Expand All @@ -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
Expand Down

0 comments on commit 52c3281

Please sign in to comment.