ci: switch to gradle/actions/setup-gradle and pass -PjavaTarget; reru… #8
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: CI Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 21 (run Gradle) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Set up Java 25 (toolchain) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| - name: Set up Gradle 8.10.2 | |
| uses: gradle/actions/setup-gradle@v3 | |
| with: | |
| gradle-version: 8.10.2 | |
| - name: Gradle Build | |
| run: gradle build -PjavaTarget=21 | |
| - name: Diagnostic (versions + stacktrace) | |
| run: | | |
| java -version | |
| gradle -v | |
| gradle build --stacktrace --info || true |