3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 00:00:41 +01:00

Merge pull request #90 from SupremeMortal/feature/build-prs

Use new GitHub Actions to build PRs
Dieser Commit ist enthalten in:
Redned 2019-11-28 17:31:35 -06:00 committet von GitHub
Commit cb0d0796fe
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 29 neuen und 17 gelöschten Zeilen

Datei anzeigen

@ -1,17 +0,0 @@
name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml

29
.github/workflows/pullrequest.yml vendored Normale Datei
Datei anzeigen

@ -0,0 +1,29 @@
name: Build Pull Request
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
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: Build with Maven
run: mvn -B package
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: success()
with:
name: Geyser
path: target/Geyser.jar