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