mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
7ba95f1ad3
* Composite gradle setup and artifact archival * Remove 'geyser' path for PRs * Move upload-preview workflow
47 lines
No EOL
1.3 KiB
YAML
47 lines
No EOL
1.3 KiB
YAML
name: Build Remote
|
|
|
|
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: {}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set Build Number
|
|
run: |
|
|
echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
|
|
|
- name: Setup Gradle
|
|
uses: GeyserMC/actions/setup-gradle-composite@master
|
|
with:
|
|
checkout_repository: ${{ inputs.repository }}
|
|
checkout_ref: ${{ inputs.ref }}
|
|
setup-java_java-version: 21
|
|
setup-gradle_cache-read-only: true
|
|
|
|
- name: Build Geyser
|
|
run: ./gradlew build
|
|
|
|
- name: Archive Artifacts
|
|
uses: GeyserMC/actions/upload-multi-artifact@master
|
|
if: success()
|
|
with:
|
|
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 |