2019-09-11 04:02:45 +02:00
|
|
|
name: Java CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-08-22 03:25:17 +02:00
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
2022-03-31 03:06:39 +02:00
|
|
|
java: ['11', '17', '18']
|
2021-09-08 20:15:44 +02:00
|
|
|
distribution: ['temurin']
|
2022-03-04 23:45:40 +01:00
|
|
|
gradle: ['7.4']
|
2021-09-08 22:45:02 +02:00
|
|
|
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'
|
2019-09-11 04:02:45 +02:00
|
|
|
fail-fast: false
|
2021-09-08 20:15:44 +02:00
|
|
|
name: JAVA ${{ matrix.distribution }} ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }}
|
2019-09-11 04:02:45 +02:00
|
|
|
steps:
|
2022-03-05 00:34:49 +01:00
|
|
|
- name: Git checkout
|
|
|
|
uses: actions/checkout@v1
|
2019-09-11 04:02:45 +02:00
|
|
|
- name: Set up JDK
|
2022-03-06 19:50:49 +01:00
|
|
|
uses: actions/setup-java@v3
|
2019-09-11 04:02:45 +02:00
|
|
|
with:
|
2021-09-08 20:15:44 +02:00
|
|
|
distribution: ${{ matrix.distribution }}
|
2019-09-11 04:02:45 +02:00
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
- name: Build with Gradle
|
2021-08-14 02:42:16 +02:00
|
|
|
uses: gradle/gradle-build-action@v1
|
|
|
|
with:
|
2021-09-08 20:15:44 +02:00
|
|
|
gradle-version: ${{ matrix.gradle }}
|
2021-12-28 20:11:33 +01:00
|
|
|
arguments: -PtestJdk8=true build --stacktrace
|
2020-08-19 02:26:33 +02:00
|
|
|
- name: Upload Test Results and Reports
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: bitcoinj-core-test-results-jdk${{ matrix.java }}-${{ matrix.os }}
|
|
|
|
path: |
|
|
|
|
core/build/reports/tests/test/
|
|
|
|
core/build/test-results/test/
|