mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
name: Java CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 15
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
java: ['11', '17', '19']
|
|
distribution: ['temurin']
|
|
gradle: ['7.6.2']
|
|
include:
|
|
# Special case to test something close to Debian config with the oldest supported (standard) Gradle on Ubuntu
|
|
- os: ubuntu-latest
|
|
java: '11'
|
|
distribution: 'temurin'
|
|
gradle: '4.10.3'
|
|
fail-fast: false
|
|
name: JAVA ${{ matrix.distribution }} ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }}
|
|
steps:
|
|
- name: Git checkout
|
|
uses: actions/checkout@v1
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: ${{ matrix.distribution }}
|
|
java-version: ${{ matrix.java }}
|
|
- name: Build with Gradle
|
|
uses: gradle/gradle-build-action@v2.4.2
|
|
with:
|
|
gradle-version: ${{ matrix.gradle }}
|
|
arguments: -PtestJdk8=true build --info --stacktrace
|
|
- name: Upload Test Results and Reports
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: bitcoinj-core-test-results-jdk${{ matrix.java }}-${{ matrix.os }}
|
|
path: |
|
|
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/
|