forked from bitcoinj/bitcoinj
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 1.2 KB
/
build.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
40
41
42
43
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: ['11', '17', '19']
distribution: ['temurin']
gradle: ['7.6.2']
fail-fast: false
name: JAVA ${{ matrix.distribution }} ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Build Groestld library
run: |
cd contrib/groestld
mkdir build
cd build
cmake ..
cmake --build .
cd ../../..
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ matrix.gradle }}
arguments: assemble --stacktrace
- name: Upload Artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: groestlcoinj-core-${{ matrix.java }}-${{ matrix.os }}
path: |
core/build/libs/