2019-11-28 23:05:33 +00:00
|
|
|
name: Build Pull Request
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-06-24 23:32:07 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
2019-11-28 23:05:33 +00:00
|
|
|
with:
|
|
|
|
path: ~/.m2/repository
|
|
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-maven-
|
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2019-12-01 02:56:39 +00:00
|
|
|
- name: submodules-init
|
|
|
|
uses: snickerbockers/submodules-init@v4
|
2019-11-28 23:05:33 +00:00
|
|
|
- name: Build with Maven
|
|
|
|
run: mvn -B package
|
2020-03-05 08:21:23 +00:00
|
|
|
- name: Archive artifacts (Geyser Standalone)
|
2020-06-24 23:32:07 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2019-11-28 23:05:33 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
2020-03-05 08:21:23 +00:00
|
|
|
name: Geyser Standalone
|
2020-03-05 02:56:08 +00:00
|
|
|
path: bootstrap/standalone/target/Geyser.jar
|
2020-03-05 08:21:23 +00:00
|
|
|
- name: Archive artifacts (Geyser Bukkit)
|
2020-06-24 23:32:07 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-03-05 08:21:23 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser Bukkit
|
|
|
|
path: bootstrap/bukkit/target/Geyser-Bukkit.jar
|
|
|
|
- name: Archive artifacts (Geyser BungeeCord)
|
2020-06-24 23:32:07 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-03-05 08:21:23 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser BungeeCord
|
|
|
|
path: bootstrap/bungeecord/target/Geyser-BungeeCord.jar
|
|
|
|
- name: Archive artifacts (Geyser Sponge)
|
2020-06-24 23:32:07 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-03-05 08:21:23 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser Sponge
|
|
|
|
path: bootstrap/sponge/target/Geyser-Sponge.jar
|
|
|
|
- name: Archive artifacts (Geyser Velocity)
|
2020-06-24 23:32:07 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-03-05 08:21:23 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser Velocity
|
|
|
|
path: bootstrap/velocity/target/Geyser-Velocity.jar
|