AbstractBlockChain: migrate private getMedianTimestampOfRecentBlocks(… #987
This file contains 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: Java CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, macOS-12, windows-2022] | |
java: ['17', '21'] | |
distribution: ['temurin'] | |
gradle: ['7.3', '8.10'] | |
exclude: | |
# Java 21+ requires Gradle 8.5+ | |
- java: '21' | |
gradle: '7.3' | |
fail-fast: false | |
name: JAVA ${{ matrix.distribution }} ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-version: ${{ matrix.gradle }} | |
- name: Run Gradle | |
run: gradle -PtestJdk8=true build --init-script build-scan-agree.gradle --scan --info --stacktrace | |
- name: Upload Test Results and Reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: bitcoinj-core-test-results-jdk${{ matrix.java }}-${{ matrix.os }}-${{ matrix.gradle }} | |
path: | | |
base/build/reports/tests/test/ | |
base/build/test-results/test/ | |
core/build/reports/tests/test/ | |
core/build/test-results/test/ | |
wallettool/build/reports/tests/test/ | |
wallettool/build/test-results/test/ | |
integration-test/build/reports/tests/test/ | |
integration-test/build/test-results/test/ |