2024-04-20 01:47:00 +00:00
|
|
|
name: Build Remote
|
2019-11-28 23:05:33 +00:00
|
|
|
|
2024-04-20 01:47:00 +00: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-28 23:05:33 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-20 01:47:00 +00:00
|
|
|
- name: Set Build Number
|
|
|
|
run: |
|
|
|
|
echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
|
|
|
|
2024-05-27 17:59:36 +00:00
|
|
|
- name: Setup Gradle
|
2024-05-28 07:11:05 +00:00
|
|
|
uses: GeyserMC/actions/setup-gradle-composite@master
|
2023-02-17 19:37:01 +00:00
|
|
|
with:
|
2024-05-28 07:11:05 +00:00
|
|
|
checkout_repository: ${{ inputs.repository }}
|
|
|
|
checkout_ref: ${{ inputs.ref }}
|
|
|
|
setup-java_java-version: 21
|
|
|
|
setup-gradle_cache-read-only: true
|
2022-10-17 00:21:29 +00:00
|
|
|
|
2024-05-27 17:59:36 +00:00
|
|
|
- name: Build Geyser
|
|
|
|
run: ./gradlew build
|
|
|
|
|
2024-05-28 07:11:05 +00:00
|
|
|
- name: Archive Artifacts
|
|
|
|
uses: GeyserMC/actions/upload-multi-artifact@master
|
2024-02-19 21:25:49 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
2024-05-28 07:11:05 +00: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
|