Update pull request workflow to use Gradle

This commit is contained in:
RednedEpic 2022-03-19 23:03:26 -05:00
parent 95747d5649
commit 6f0ff0f83d
1 changed files with 9 additions and 13 deletions

View File

@ -9,47 +9,43 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - 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 16 - name: Set up JDK 16
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
distribution: 'temurin'
java-version: 16 java-version: 16
cache: 'gradle'
- name: submodules-init - name: submodules-init
uses: snickerbockers/submodules-init@v4 uses: snickerbockers/submodules-init@v4
- name: Build with Maven - name: Build with Gradle
run: mvn -B package -T 2C run: ./gradlew build
- name: Archive artifacts (Geyser Standalone) - name: Archive artifacts (Geyser Standalone)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: success() if: success()
with: with:
name: Geyser Standalone name: Geyser Standalone
path: bootstrap/standalone/target/Geyser.jar path: bootstrap/standalone/build/libs/Geyser.jar
- name: Archive artifacts (Geyser Spigot) - name: Archive artifacts (Geyser Spigot)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: success() if: success()
with: with:
name: Geyser Spigot name: Geyser Spigot
path: bootstrap/spigot/target/Geyser-Spigot.jar path: bootstrap/spigot/build/libs/Geyser-Spigot.jar
- name: Archive artifacts (Geyser BungeeCord) - name: Archive artifacts (Geyser BungeeCord)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: success() if: success()
with: with:
name: Geyser BungeeCord name: Geyser BungeeCord
path: bootstrap/bungeecord/target/Geyser-BungeeCord.jar path: bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar
- name: Archive artifacts (Geyser Sponge) - name: Archive artifacts (Geyser Sponge)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: success() if: success()
with: with:
name: Geyser Sponge name: Geyser Sponge
path: bootstrap/sponge/target/Geyser-Sponge.jar path: bootstrap/sponge/build/libs/Geyser-Sponge.jar
- name: Archive artifacts (Geyser Velocity) - name: Archive artifacts (Geyser Velocity)
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: success() if: success()
with: with:
name: Geyser Velocity name: Geyser Velocity
path: bootstrap/velocity/target/Geyser-Velocity.jar path: bootstrap/velocity/build/libs/Geyser-Velocity.jar