diff --git a/.github/workflows/compile_openjdk.yml b/.github/workflows/compile_openjdk.yml
index d8a114300bf66293ea51b6c5d48fb128b9117ed6..64a70ba8e30602967d1d504f417a2f9f06022220 100644
--- a/.github/workflows/compile_openjdk.yml
+++ b/.github/workflows/compile_openjdk.yml
@@ -10,7 +10,7 @@ on:
 jobs:
     build:
         name: Build OpenJDK versions
-        runs-on: macos-latest
+        runs-on: macos-14
 
         steps:
         - name: Checkout
@@ -22,7 +22,7 @@ jobs:
 
         - name: Clone OpenJDK
           run: |
-                git clone https://github.com/openjdk/jdk17u.git --depth 1 --branch jdk-17.0.12+2
+                git clone https://github.com/openjdk/jdk17u.git --depth 1 --branch jdk-17.0.12+0
 
         - name: Apply patches
           run: |