ci(actions): add java 24 build #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Compile Java | ||
| on: [pull_request, workflow_dispatch] | ||
| jobs: | ||
| compile-java-17: | ||
| name: Compile on Java 17 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Validate Gradle wrapper | ||
| uses: gradle/actions/wrapper-validation@v4 | ||
| - name: Setup JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: 17 | ||
| distribution: microsoft | ||
| - name: Make Gradle wrapper executable | ||
| run: chmod +x ./gradlew | ||
| - name: Compile Java | ||
| run: ./gradlew compileJava | ||
| - name: Compile client-side Java | ||
| run: ./gradlew compileClientJava | ||
| compile-java-21: | ||
| name: Compile on Java 21 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Validate Gradle wrapper | ||
| uses: gradle/actions/wrapper-validation@v4 | ||
| - name: Setup JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: 21 | ||
| distribution: microsoft | ||
| - name: Make Gradle wrapper executable | ||
| run: chmod +x ./gradlew | ||
| - name: Compile Java | ||
| run: ./gradlew compileJava | ||
| - name: Compile client-side Java | ||
| run: ./gradlew compileClientJava | ||
| compile-java-24: | ||
| name: Compile on Java 24 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Validate Gradle wrapper | ||
| uses: gradle/actions/wrapper-validation@v4 | ||
| - name: Setup JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: 24 | ||
| distribution: microsoft | ||
| - name: Make Gradle wrapper executable | ||
| run: chmod +x ./gradlew | ||
| - name: Compile Java | ||
| run: ./gradlew compileJava | ||
| - name: Compile client-side Java | ||
| run: ./gradlew compileClientJava | ||