From 4604530187e7def6dd4639cce478bd06424c3be6 Mon Sep 17 00:00:00 2001 From: Malte Hansen Date: Wed, 8 Jan 2025 12:52:48 +0100 Subject: [PATCH] Use pre-installed Java 21 in workflow --- .github/workflows/ci.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index da9c46c..62d0a82 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,11 +37,10 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Set up Java - uses: actions/setup-java@v4 - with: - distribution: "graalvm" - java-version: "21" + - name: Set Java 21 as default + run: | + export JAVA_HOME=${JAVA_HOME_21_X64} + export PATH=$JAVA_HOME/bin:$PATH - name: Cache Gradle Packages uses: actions/cache@v4 with: @@ -57,11 +56,10 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Set up Java - uses: actions/setup-java@v4 - with: - distribution: "graalvm" - java-version: "21" + - name: Set Java 21 as default + run: | + export JAVA_HOME=${JAVA_HOME_21_X64} + export PATH=$JAVA_HOME/bin:$PATH - name: Cache Gradle Packages uses: actions/cache@v4 with: