2024-04-20 03:47:00 +02:00
|
|
|
name: Build Remote
|
2019-11-29 00:05:33 +01:00
|
|
|
|
2024-04-20 03:47:00 +02:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
repository:
|
|
|
|
required: true
|
|
|
|
description: 'The repo of the remote'
|
|
|
|
type: string
|
|
|
|
ref:
|
|
|
|
required: true
|
|
|
|
description: 'The ref of the remote'
|
|
|
|
type: string
|
|
|
|
|
|
|
|
permissions: {}
|
2019-11-29 00:05:33 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-20 03:47:00 +02:00
|
|
|
- name: Set Build Number
|
|
|
|
run: |
|
|
|
|
echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
|
|
|
|
2024-05-27 19:59:36 +02:00
|
|
|
- name: Setup Gradle
|
2024-05-28 09:11:05 +02:00
|
|
|
uses: GeyserMC/actions/setup-gradle-composite@master
|
2023-02-17 20:37:01 +01:00
|
|
|
with:
|
2024-05-28 09:11:05 +02:00
|
|
|
checkout_repository: ${{ inputs.repository }}
|
|
|
|
checkout_ref: ${{ inputs.ref }}
|
|
|
|
setup-java_java-version: 21
|
|
|
|
setup-gradle_cache-read-only: true
|
2022-10-17 02:21:29 +02:00
|
|
|
|
2024-05-27 19:59:36 +02:00
|
|
|
- name: Build Geyser
|
|
|
|
run: ./gradlew build
|
|
|
|
|
2024-05-28 09:11:05 +02:00
|
|
|
- name: Archive Artifacts
|
|
|
|
uses: GeyserMC/actions/upload-multi-artifact@master
|
2024-02-19 22:25:49 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
2024-05-28 09:11:05 +02:00
|
|
|
artifacts: |
|
|
|
|
bootstrap/mod/fabric/build/libs/Geyser-Fabric.jar
|
|
|
|
bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.jar
|
|
|
|
bootstrap/standalone/build/libs/Geyser-Standalone.jar
|
|
|
|
bootstrap/spigot/build/libs/Geyser-Spigot.jar
|
|
|
|
bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar
|
|
|
|
bootstrap/velocity/build/libs/Geyser-Velocity.jar
|
|
|
|
bootstrap/viaproxy/build/libs/Geyser-ViaProxy.jar
|