Skip to content

feat: compile with JDK17 LTS, build with JDK21 #345

feat: compile with JDK17 LTS, build with JDK21

feat: compile with JDK17 LTS, build with JDK21 #345

Workflow file for this run

name: Gradle Build
on:
pull_request:
jobs:
# pr时校验gradle build是否通过
build:
strategy:
matrix:
java-version: [ 11, 17, 21 ]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'gradle'
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Build with Gradle
run: ./gradlew build