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 Java
|
2023-09-13 16:46:45 +02:00
|
|
|
# See https://github.com/actions/setup-java/commits
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
|
2019-11-29 00:05:33 +01:00
|
|
|
with:
|
2024-04-23 23:14:54 +02:00
|
|
|
java-version: 21
|
2023-02-17 20:37:01 +01:00
|
|
|
distribution: temurin
|
|
|
|
|
|
|
|
- name: Checkout repository and submodules
|
2023-09-13 16:46:45 +02:00
|
|
|
# See https://github.com/actions/checkout/commits
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
2023-02-17 20:37:01 +01:00
|
|
|
with:
|
2024-04-20 03:47:00 +02:00
|
|
|
repository: ${{ inputs.repository }}
|
|
|
|
ref: ${{ inputs.ref }}
|
2023-02-17 20:37:01 +01:00
|
|
|
submodules: recursive
|
|
|
|
|
2023-09-13 16:46:45 +02:00
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
# See https://github.com/gradle/wrapper-validation-action/commits
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
|
2023-09-13 16:46:45 +02:00
|
|
|
|
2024-05-27 19:59:36 +02:00
|
|
|
- name: Setup Gradle
|
2024-04-20 03:47:00 +02:00
|
|
|
# See https://github.com/gradle/actions/commits
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
|
2023-02-17 20:37:01 +01:00
|
|
|
with:
|
2024-04-20 03:47:00 +02:00
|
|
|
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
|
|
|
|
|
2022-10-17 02:21:29 +02:00
|
|
|
- name: Archive artifacts (Geyser Fabric)
|
2023-09-13 16:46:45 +02:00
|
|
|
# See https://github.com/actions/upload-artifact/commits
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
2022-10-17 02:21:29 +02:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser Fabric
|
2024-02-23 17:58:39 +01:00
|
|
|
path: geyser/bootstrap/mod/fabric/build/libs/Geyser-Fabric.jar
|
|
|
|
if-no-files-found: error
|
|
|
|
- name: Archive artifacts (Geyser NeoForge)
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
2024-02-23 17:58:39 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser NeoForge
|
|
|
|
path: geyser/bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.jar
|
2024-04-23 23:04:38 +02:00
|
|
|
if-no-files-found: error
|
2020-03-05 09:21:23 +01:00
|
|
|
- name: Archive artifacts (Geyser Standalone)
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
2019-11-29 00:05:33 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
2020-03-05 09:21:23 +01:00
|
|
|
name: Geyser Standalone
|
2023-02-22 15:11:06 +01:00
|
|
|
path: geyser/bootstrap/standalone/build/libs/Geyser-Standalone.jar
|
2023-03-08 03:59:21 +01:00
|
|
|
if-no-files-found: error
|
2020-05-26 16:47:34 +02:00
|
|
|
- name: Archive artifacts (Geyser Spigot)
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
2020-03-05 09:21:23 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
2020-05-26 16:47:34 +02:00
|
|
|
name: Geyser Spigot
|
2023-02-22 15:11:06 +01:00
|
|
|
path: geyser/bootstrap/spigot/build/libs/Geyser-Spigot.jar
|
2023-03-08 03:59:21 +01:00
|
|
|
if-no-files-found: error
|
2020-03-05 09:21:23 +01:00
|
|
|
- name: Archive artifacts (Geyser BungeeCord)
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
2020-03-05 09:21:23 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser BungeeCord
|
2023-02-22 15:11:06 +01:00
|
|
|
path: geyser/bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar
|
2023-03-08 03:59:21 +01:00
|
|
|
if-no-files-found: error
|
2020-03-05 09:21:23 +01:00
|
|
|
- name: Archive artifacts (Geyser Velocity)
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
2020-03-05 09:21:23 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser Velocity
|
2023-02-22 15:11:06 +01:00
|
|
|
path: geyser/bootstrap/velocity/build/libs/Geyser-Velocity.jar
|
2023-03-08 03:59:21 +01:00
|
|
|
if-no-files-found: error
|
2024-02-19 22:25:49 +01:00
|
|
|
- name: Archive artifacts (Geyser ViaProxy)
|
2024-05-27 19:59:36 +02:00
|
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
2024-02-19 22:25:49 +01:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser ViaProxy
|
|
|
|
path: geyser/bootstrap/viaproxy/build/libs/Geyser-ViaProxy.jar
|
2024-04-20 03:47:00 +02:00
|
|
|
if-no-files-found: error
|