Skip to content

cache & inherited workflows #2

cache & inherited workflows

cache & inherited workflows #2

Workflow file for this run

name: JDK Setup
on:
workflow_call:
jobs:
setup:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Cache JDK 17
uses: actions/cache@v4
with:
path: /usr/lib/jvm/java-17
key: jdk-17-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
jdk-17-${{ runner.os }}-
- name: Setup JDK 17
if: steps.cache.outputs == ''
with:
distribution: 'corretto'
java-version: '17'
cache: 'gradle'
- name: Verify JDK Installation
run: java -version