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-04-23 21:14:54 +00:00
|
|
|
- name: Set up JDK 21
|
2023-09-13 14:46:45 +00:00
|
|
|
# See https://github.com/actions/setup-java/commits
|
2024-03-04 22:37:45 +00:00
|
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
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
|
|
|
|
path: geyser
|
|
|
|
|
2023-09-13 14:46:45 +00:00
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
# See https://github.com/gradle/wrapper-validation-action/commits
|
2024-03-04 22:37:45 +00:00
|
|
|
uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1
|
2023-09-13 14:46:45 +00:00
|
|
|
|
2023-02-17 19:37:01 +00:00
|
|
|
- name: Build Geyser
|
2024-04-20 01:47:00 +00:00
|
|
|
# See https://github.com/gradle/actions/commits
|
|
|
|
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
|
2023-02-17 19:37:01 +00:00
|
|
|
with:
|
|
|
|
arguments: build
|
|
|
|
build-root-directory: geyser
|
2024-04-20 01:47:00 +00:00
|
|
|
cache-read-only: true
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
2024-02-23 16:58:39 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: Geyser NeoForge
|
|
|
|
path: geyser/bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.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 Standalone)
|
2024-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
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-03-04 22:37:45 +00:00
|
|
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
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
|