-
Notifications
You must be signed in to change notification settings - Fork 7.6k
4.x: Add optional build/test for future JDKs #8077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+86
−12
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
95412e8
4.x: Add optional build/test for future JDKs
akarnokd 9b6fb3f
try temurin builds
akarnokd 7a0dda4
use toolchain override
akarnokd 97fe184
Run Gradle on 26, invoke toolchain for 27
akarnokd ffc6185
Minor log fix
akarnokd 4d6d31b
hope gradle runs on 26
akarnokd 748b186
Don't run jacoco on EA as it breaks its assembly parser
akarnokd e83b903
another attempt at running Gradle on 26 and code on 27
akarnokd 561a113
Fix jacoco again
akarnokd 7fa6cd9
fix java home
akarnokd ea55e55
No jacoco for experimentals
akarnokd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # This workflow will build a Java project with Gradle | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
|
||
| name: Preview-JDKs | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ '4.x' ] | ||
| pull_request: | ||
| branches: [ '4.x' ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| jdk: [27] # add 28-ea etc. later | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - name: Set up JDK 26 | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '26' | ||
| cache: gradle | ||
|
|
||
| - name: Set up JDK ${{ matrix.jdk }}-ea | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '${{ matrix.jdk }}-ea' | ||
|
|
||
| - name: Cache Gradle packages | ||
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | ||
| with: | ||
| path: ~/.gradle/caches | ||
| key: ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/*.gradle') }} | ||
| restore-keys: ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }} | ||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Run Validity Tests Upfront | ||
| env: | ||
| JDK_EXPERIMENTAL: ${{ matrix.jdk }} | ||
| JAVA_HOME: ${{ env.JAVA_HOME_26_X64 }} | ||
| run: ./gradlew test --tests "io.reactivex.rxjava4.validators.*" --stacktrace --no-daemon | ||
| - name: Build RxJava | ||
| env: | ||
| JDK_EXPERIMENTAL: ${{ matrix.jdk }} | ||
| JAVA_HOME: ${{ env.JAVA_HOME_26_X64 }} | ||
| run: ./gradlew build --stacktrace | ||
| - name: Generate Javadoc | ||
| env: | ||
| JDK_EXPERIMENTAL: ${{ matrix.jdk }} | ||
| JAVA_HOME: ${{ env.JAVA_HOME_26_X64 }} | ||
| run: ./gradlew javadoc --stacktrace | ||
|
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.