forked from calimero-project/calimero-core
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 1.68 KB
/
gradle.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
name: CI with Gradle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 15]
name: Java ${{ matrix.java }} sample
steps:
- name: Checkout calimero-core
uses: actions/checkout@v2
with:
repository: calimero-project/calimero-core
path: calimero-core
- name: Checkout calimero-device
uses: actions/checkout@v2
with:
repository: calimero-project/calimero-device
path: calimero-device
- name: Checkout calimero-rxtx
uses: actions/checkout@v2
with:
repository: calimero-project/calimero-rxtx
path: calimero-rxtx
- name: Checkout calimero-server
uses: actions/checkout@v2
with:
repository: calimero-project/calimero-server
path: calimero-server
- name: Checkout calimero-testnetwork
uses: actions/checkout@v2
with:
repository: calimero-project/calimero-testnetwork
path: calimero-testnetwork
- name: Checkout calimero-core
uses: actions/checkout@v2
with:
path: calimero-core
- name: setup
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Grant execute permission for gradlew
run: |
chmod +x calimero-testnetwork/gradlew
chmod +x calimero-core/gradlew
- name: Start testnetwork
run: |
cd calimero-testnetwork
./gradlew build
./gradlew run --args "../calimero-core/test/testnetwork-launcher/server-config.xml" &
- name: Build with Gradle
run: |
cd calimero-core
./gradlew build