-
Notifications
You must be signed in to change notification settings - Fork 49
161 lines (154 loc) · 4.83 KB
/
workflow.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: xrpl4j-CI
on:
push:
pull_request:
types: [assigned]
jobs:
build_java8:
runs-on: ubuntu-20.04
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Set up Java 8
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- name: Build
run: mvn dependency:go-offline install
- name: Upload to Codecov
uses: codecov/codecov-action@v3.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
build_android:
runs-on: ubuntu-20.04
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Set up Android
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- name: Build
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true -Pandroid
build_other_java:
runs-on: ubuntu-20.04
strategy:
matrix:
# test against each major Java version
java: [ 9, 10, 11, 12, 13, 14, 15, 16, 17 ]
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Set up Java version
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- name: Build
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true
build_open_jdk_non_us:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
# Set up Adopt OpenJDK Hotspot 16
- name: Set up OpenJDK 16
uses: actions/setup-java@v1
with:
distribution: adopt
java-version: 16
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
# Maven install with JVM locale = de_DE
- name: Build
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true -DargLine="-Duser.language=de -Duser.country=DE"
build_devnet_its:
runs-on: ubuntu-20.04
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Set up Java 8
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- name: Build
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true -DuseDevnet
build_testnet_reporting_its:
runs-on: ubuntu-20.04
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Set up Java 8
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- name: Build
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true -DuseTestnet
build_testnet_clio_its:
runs-on: ubuntu-20.04
steps:
# Checks-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
# Set up Java 8
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache mvn dependencies
uses: actions/cache@v2
env:
cache-name: mvn-deps
with:
path: ~/.m2
key: ${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- name: Build
run: mvn dependency:go-offline install -Dmaven.javadoc.skip=true -DuseClioTestnet -DuseClioMainnet