bitcoinj/.github/workflows/gradle.yml

43 lines
1.4 KiB
YAML
Raw Normal View History

name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
2022-03-31 03:06:39 +02:00
java: ['11', '17', '18']
distribution: ['temurin']
2022-03-04 23:45:40 +01:00
gradle: ['7.4']
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
2022-03-06 19:50:49 +01:00
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Build with Gradle
uses: gradle/gradle-build-action@v1
with:
gradle-version: ${{ matrix.gradle }}
arguments: -PtestJdk8=true build --stacktrace
- 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/