-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (37 loc) · 1.17 KB
/
regtest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Bitcoin Core RegTest
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java: [ '17', '21-ea' ]
distribution: ['temurin']
fail-fast: false
name: ${{ matrix.os }} JDK ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
- name: Download Omni Core (Bitcoin Core superset)
run: ./test-download-omnicore-ubuntu.sh
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Run RegTests
run: ./test-run-regtest.sh
- name: Upload RegTest results as artifact
uses: actions/upload-artifact@v3
if: failure()
with:
name: regtest-consensusj-jdk${{ matrix.java }}-${{ matrix.os }}-reports
path: |
cj-btc-jsonrpc-integ-test/build/reports/tests/regTest
cj-btc-cli/build/reports/tests/regTest