From 978ad4a234549e4eb7e3115958ba7a6775b9e531 Mon Sep 17 00:00:00 2001 From: Aaron Ai Date: Fri, 31 Mar 2023 22:50:41 +0800 Subject: [PATCH] Polish the script --- .github/workflows/java_build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/java_build.yml b/.github/workflows/java_build.yml index bcfc29614..61663c62d 100644 --- a/.github/workflows/java_build.yml +++ b/.github/workflows/java_build.yml @@ -28,6 +28,12 @@ jobs: steps: - name: Checkout Current Repository uses: actions/checkout@v2 + # Use JDK 17. + - name: Use JDK 17 + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: "adopt" # Build the code of the current repository, skipping tests and code style checks. - name: Build Current Repository working-directory: ./java