-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (36 loc) · 1017 Bytes
/
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
name: Build All
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Move `private` folder
run: mv private.sample private
- name: Build with Gradle
run: |
./gradlew build --info --stacktrace
./gradlew :RMBTClient:shadowJar
./gradlew :RMBTMapServer:war
./gradlew :RMBTStatisticServer:war
./gradlew :RMBTQoSServer:jar
./gradlew :RMBTControlServer:war
- name: Archive files
uses: actions/upload-artifact@v2
with:
name: outputs
path: |
RMBTClient/build/libs/*-all.jar
RMBTQoSServer/build/libs/*.jar
RMBTControlServer/build/libs/*.war
RMBTMapServer/build/libs/*.war
RMBTStatisticServer/build/libs/*.war
retention-days: 365