Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 08:10:11 +01:00
56 Zeilen
1.6 KiB
YAML
56 Zeilen
1.6 KiB
YAML
name: Build Pull Request
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
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
|
|
- name: submodules-init
|
|
uses: snickerbockers/submodules-init@v4
|
|
- name: Build with Maven
|
|
run: mvn -B package
|
|
- name: Archive artifacts (Geyser Standalone)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Geyser Standalone
|
|
path: bootstrap/standalone/target/Geyser.jar
|
|
- name: Archive artifacts (Geyser Spigot)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Geyser Spigot
|
|
path: bootstrap/spigot/target/Geyser-Spigot.jar
|
|
- name: Archive artifacts (Geyser BungeeCord)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Geyser BungeeCord
|
|
path: bootstrap/bungeecord/target/Geyser-BungeeCord.jar
|
|
- name: Archive artifacts (Geyser Sponge)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Geyser Sponge
|
|
path: bootstrap/sponge/target/Geyser-Sponge.jar
|
|
- name: Archive artifacts (Geyser Velocity)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Geyser Velocity
|
|
path: bootstrap/velocity/target/Geyser-Velocity.jar
|