Fresh production baseline [skip ci]

This commit is contained in:
DuneRealms 2026-11-27 23:43:05 +00:00
commit 0a11a18274
4 changed files with 229644 additions and 0 deletions

221
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,221 @@
name: Build DuneCore, DuneNPC, DuneEss, and DuneTerrain
on:
workflow_dispatch:
push:
branches: [main, "feature/native-gui-1.21.8"]
jobs:
build-website:
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install website server dependencies
run: npm install --omit=dev --no-audit --no-fund
- name: Build the illustrated website and API
run: node scripts/build.mjs
- name: Test feeds and compiled pages
run: node --test tests/*.test.mjs
- name: Test inventory ownership and private market bridge
run: node --test ../control-panel-inventory/tests/*.test.mjs
- name: Upload website build
uses: actions/upload-artifact@v4
with:
name: Project-Dune-Website
path: website/dist/
include-hidden-files: true
if-no-files-found: error
build-core:
runs-on: ubuntu-latest
defaults:
run:
working-directory: DuneRealms-minecraft-only
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- name: Compile DuneCore
run: gradle clean build
- name: Upload compiled JAR
uses: actions/upload-artifact@v4
with:
name: DuneCore-Plugin
path: DuneRealms-minecraft-only/build/libs/*.jar
if-no-files-found: error
build-terrain:
runs-on: ubuntu-latest
defaults:
run:
working-directory: DuneTerrain
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- name: Compile DuneTerrain
run: gradle clean build
- name: Upload compiled JAR
uses: actions/upload-artifact@v4
with:
name: DuneTerrain-Plugin
path: DuneTerrain/build/libs/*.jar
if-no-files-found: error
build-ess:
runs-on: ubuntu-latest
defaults:
run:
working-directory: DuneEss
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- name: Compile DuneEss
run: gradle clean build
- name: Upload compiled JAR
uses: actions/upload-artifact@v4
with:
name: DuneEss-Plugin
path: DuneEss/build/libs/*.jar
if-no-files-found: error
build-npc:
runs-on: ubuntu-latest
defaults:
run:
working-directory: DuneNPC
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- name: Compile and test DuneNPC
run: gradle clean build
- name: Upload compiled JAR
uses: actions/upload-artifact@v4
with:
name: DuneNPC-Plugin
path: DuneNPC/build/libs/*.jar
if-no-files-found: error
build-lobby:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- run: gradle -p DuneLobby clean build
- uses: actions/upload-artifact@v4
with:
name: DuneLobby-Plugin
path: DuneLobby/build/libs/*.jar
if-no-files-found: error
package-server:
runs-on: ubuntu-latest
needs: [build-core, build-ess, build-terrain, build-npc, build-lobby]
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Download all plugin JARs
uses: actions/download-artifact@v4
with:
pattern: Dune*-Plugin
path: DuneRealms-Server-Package
merge-multiple: true
- name: Download verified crossplay plugins
run: python3 tools/download-crossplay.py DuneRealms-Server-Package/crossplay
- name: Add resource pack and install instructions
run: |
curl --fail --location --silent --show-error \
https://github.com/Foulest/Vault/releases/download/2.5.0/Vault-2.5.0.jar \
--output DuneRealms-Server-Package/Vault-2.5.0.jar
echo "3efb1c893d35807c0f3945068858a96af0f131020eee37545bdddb330044b2d9 DuneRealms-Server-Package/Vault-2.5.0.jar" | sha256sum --check --strict
curl --fail --location --silent --show-error \
https://raw.githubusercontent.com/Foulest/Vault/2.5.0/LICENSE \
--output DuneRealms-Server-Package/Vault-LICENSE.txt
cp DuneResourcePack.zip DuneRealms-Server-Package/
cp docs/Dune-User-Manual.pdf DuneRealms-Server-Package/
cp docs/Dune-Complete-Illustrated-Manual.pdf DuneRealms-Server-Package/
cp docs/posters/*.png DuneRealms-Server-Package/
cp docs/Native-GUI.md DuneRealms-Server-Package/Native-GUI.md
cp README.md DuneRealms-Server-Package/Project-README.md
cp website/DISCORD-FEEDS.md DuneRealms-Server-Package/DiscordSRV-Website-Setup.md
cat > DuneRealms-Server-Package/README.txt <<'EOF'
DuneRealms Paper server package
Contents: Vault 2.5.0, all five Dune plugins, and verified Geyser, Floodgate, ViaVersion JARs.
See Native-GUI.md for platform-specific plugin placement.
The illustrated user manual and Project-README.md are included for players and administrators.
Install the applicable plugin JARs in the Paper server's plugins/ folder and restart the server.
Install the included resource pack on vanilla or Fabric 1.21.4 clients for sandworm, haunted Fremen, and spice textures.
On Fabric, put the ZIP in .minecraft/resourcepacks and enable it in Options > Resource Packs; do not put it in mods/.
DuneEss provides the Solaris economy through the included Vault API plugin.
Vault 2.5.0 is the GPL-3.0 licensed Foulest/MilkBowl Vault project; its license is included here.
Its source is available at https://github.com/Foulest/Vault/tree/2.5.0.
Compatible GUI build target: Paper 1.21.8, Java 21.
See https://github.com/thomasv6545-glitch/MC for setup and configuration details.
EOF
- name: ZIP every server plugin JAR together
run: zip -r DuneRealms-All-Server-Jars.zip DuneRealms-Server-Package
- name: Upload one downloadable server package
uses: actions/upload-artifact@v4
with:
name: DuneRealms-Server-Package
path: DuneRealms-All-Server-Jars.zip
if-no-files-found: error
retention-days: 90

28
.github/workflows/lobby.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Build Guild Lobby companion
on:
workflow_dispatch:
push:
branches: [main, beta]
paths: ['DuneLobby/**', 'worlds/**', '.github/workflows/lobby.yml', 'gui-common/**']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- run: gradle -p DuneLobby build
- uses: actions/upload-artifact@v4
with:
name: Dune-Guild-Lobby
path: |
DuneLobby/build/libs/*.jar
worlds/Dune-Guild-Lobby-1.1.0.zip
DuneLobby/README.md
DuneLobby/VALIDATION.md
if-no-files-found: error

25
.github/workflows/network-preflight.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Network configuration preflight
on:
push:
paths:
- 'network/**'
- 'DuneTerrain/src/main/resources/config.yml'
- '.github/workflows/network-preflight.yml'
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check inventory and build world config ZIPs
run: python3 network/preflight.py --check-worlds
- name: Simulate 1000 chunks of planetary ore attempts
run: python3 network/simulate-ores.py
- name: Upload world configuration packages
uses: actions/upload-artifact@v4
with:
name: dune-world-configs
path: network/generated-worlds/*-world-config.zip

52
.github/workflows/network.yml vendored Normal file
View file

@ -0,0 +1,52 @@
name: Package DuneRealms Velocity Network
on:
workflow_dispatch:
push:
branches: [main, "feature/native-gui-1.21.8"]
paths:
- 'network/**'
- 'gui-common/**'
- 'tools/**'
- 'DuneLobby/**'
- 'DuneTerrain/**'
- 'DuneEss/**'
- 'DuneNPC/**'
- 'DuneRealms-minecraft-only/**'
- '.github/workflows/network.yml'
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- name: Build plugins
run: |
set -e
mkdir -p built-plugins
for project in DuneRealms-minecraft-only DuneTerrain DuneNPC DuneEss DuneLobby; do
(cd "$project" && gradle clean build)
done
cp DuneRealms-minecraft-only/build/libs/*.jar built-plugins/DuneCore.jar
cp DuneTerrain/build/libs/*.jar built-plugins/DuneTerrain.jar
cp DuneNPC/build/libs/*.jar built-plugins/DuneNPC.jar
cp DuneEss/build/libs/*.jar built-plugins/DuneRealms-Essentials.jar
cp DuneLobby/build/libs/*.jar built-plugins/DuneLobby.jar
- name: Download verified crossplay plugins
run: |
python3 tools/download-crossplay.py built-crossplay
curl --fail --location --silent --show-error https://github.com/Foulest/Vault/releases/download/2.5.0/Vault-2.5.0.jar --output built-crossplay/universal/Vault-2.5.0.jar
echo "3efb1c893d35807c0f3945068858a96af0f131020eee37545bdddb330044b2d9 built-crossplay/universal/Vault-2.5.0.jar" | sha256sum --check --strict
curl --fail --location --silent --show-error https://raw.githubusercontent.com/Foulest/Vault/2.5.0/LICENSE --output built-crossplay/Vault-LICENSE.txt
- name: Package six servers and Velocity config
run: python3 network/package.py
- uses: actions/upload-artifact@v4
with:
name: DuneRealms-Velocity-Network
path: DuneRealms-Velocity-Network.zip
if-no-files-found: error