Skip to content

ci: add java21 to build matrix; switch jdk distribution to zulu #10

ci: add java21 to build matrix; switch jdk distribution to zulu

ci: add java21 to build matrix; switch jdk distribution to zulu #10

Workflow file for this run

name: Build
on:
push:
branches: [ "develop", "feature/**" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04]
jdk: [ 8, 11, 17, 21 ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: "zulu"
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew clean build --no-daemon