Compile Java #4
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: | |
| name: Compile Java | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java-version: [21, 17] | |
| 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: ${{ matrix.java-version }} | |
| distribution: microsoft | |
| - name: Make Gradle wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: Compile Java and client-side Java | |
| run: ./gradlew compileJava compileClientJava |