Compare commits
12555 changed files with 1693 additions and 288862 deletions
|
|
@ -1,50 +0,0 @@
|
||||||
name: Arrakis Crysknife Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/jarvis-crysknife-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
crysknife:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Package the Arrakis J.A.R.V.I.S., Terrain and resource pack release
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p JarvisConnector test jar
|
|
||||||
gradle --no-daemon -p DuneTerrain test jar
|
|
||||||
python3 tools/plugin_pillager_abi.py JarvisConnector/build/libs/jarvistranslator.jar
|
|
||||||
python3 tools/verify-arrakis-terrain.py DuneTerrain/build/libs/DuneRealms-Terrain.jar DuneTerrain/src/test/resources/retained-arrakis-terrain.json
|
|
||||||
python3 tools/test_plugin_fleet_install.py -v
|
|
||||||
python3 tools/test_plugin_pillager_profile.py PillagerProfileTests -v
|
|
||||||
python3 tools/test_plugin_pack_properties.py -v
|
|
||||||
mkdir crysknife-artifacts
|
|
||||||
cp JarvisConnector/build/libs/jarvistranslator.jar DuneTerrain/build/libs/DuneRealms-Terrain.jar crysknife-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > crysknife-artifacts/SOURCE_COMMIT
|
|
||||||
python3 tools/build-unified-resourcepack.py --source "$GITHUB_SHA" --output "crysknife-artifacts/DuneRealms-Resources-${GITHUB_SHA}.zip"
|
|
||||||
python3 tools/write-plugin-manifest.py crysknife-artifacts "$GITHUB_SHA"
|
|
||||||
cp tools/install-plugin-fleet.py tools/plugin_menu_pack.py tools/plugin_backend_abi.py tools/plugin_pillager_abi.py tools/plugin_fleet_rollback.py tools/plugin_pack_properties.py tools/publish-plugin-menu.py crysknife-artifacts/
|
|
||||||
cp JarvisConnector/src/test/resources/retained-jarvis-public-abi.json JarvisConnector/src/test/resources/medieval-factions-11.1-raid-api.json JarvisConnector/src/test/resources/worldguard-raid-api.json DuneTerrain/src/test/resources/retained-arrakis-terrain.json crysknife-artifacts/
|
|
||||||
(cd crysknife-artifacts && sha256sum -- *.jar *.zip *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Arrakis-Crysknife
|
|
||||||
path: crysknife-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
name: Arrakis Raw Spice Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['fix/arrakis-raw-spice-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
raw-spice:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Verify the Arrakis JARVIS-only transition
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p JarvisConnector test jar
|
|
||||||
python3 tools/test_plugin_fleet_install.py -v
|
|
||||||
python3 tools/plugin_arrakis_raw_spice.py JarvisConnector/build/libs/jarvistranslator.jar
|
|
||||||
mkdir raw-spice-artifacts
|
|
||||||
cp JarvisConnector/build/libs/jarvistranslator.jar raw-spice-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > raw-spice-artifacts/SOURCE_COMMIT
|
|
||||||
python3 tools/write-plugin-manifest.py raw-spice-artifacts "$GITHUB_SHA"
|
|
||||||
cp tools/{install-plugin-fleet,plugin_arrakis_raw_spice,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi,reset-arrakis-terrain}.py raw-spice-artifacts/
|
|
||||||
(cd raw-spice-artifacts && sha256sum -- *.jar *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Arrakis-Raw-Spice
|
|
||||||
path: raw-spice-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
name: Arrakis Terrain Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
terrain:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Test and package the bounded Terrain release
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneTerrain test jar
|
|
||||||
python3 tools/test_arrakis_terrain_reset.py -v
|
|
||||||
python3 tools/verify-arrakis-terrain.py DuneTerrain/build/libs/DuneRealms-Terrain.jar DuneTerrain/src/test/resources/retained-arrakis-terrain.json
|
|
||||||
mkdir terrain-artifacts
|
|
||||||
cp DuneTerrain/build/libs/DuneRealms-Terrain.jar terrain-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > terrain-artifacts/SOURCE_COMMIT
|
|
||||||
python3 tools/write-plugin-manifest.py terrain-artifacts "$GITHUB_SHA"
|
|
||||||
cp tools/reset-arrakis-terrain.py tools/verify-arrakis-terrain.py tools/plugin_backend_abi.py terrain-artifacts/
|
|
||||||
cp DuneTerrain/src/test/resources/retained-arrakis-terrain.json DuneTerrain/docs/ARRAKIS-RESET-20261129.md terrain-artifacts/
|
|
||||||
(cd terrain-artifacts && sha256sum -- *.jar *.json *.py *.md SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Arrakis-Terrain
|
|
||||||
path: terrain-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
name: ATM RIA Copy and Sigma Goats
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['fix/atm-ria-copy-*', 'fix/ria-recover-deposit-*']
|
|
||||||
jobs:
|
|
||||||
atm-ria-copy:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Test ATM controls and preserve Sigma ecology
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneMenus test jar
|
|
||||||
gradle --no-daemon -p DuneTerrain test jar
|
|
||||||
mkdir atm-ria-copy
|
|
||||||
PYTHONPATH=tools python3 - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
from plugin_ria_copy import ATM, COPY
|
|
||||||
from plugin_wild_update import read_archive, write_archive
|
|
||||||
compiled=read_archive(Path('DuneMenus/build/libs/DuneMenus.jar').read_bytes())
|
|
||||||
Path('atm-ria-copy/donor.zip').write_bytes(write_archive({p:compiled[p] for p in (ATM,COPY)}))
|
|
||||||
PY
|
|
||||||
cp tools/{plugin_ria_copy.py,plugin_wild_update.py,plugin_sigma_goats.py,SigmaGoatMerge.java} atm-ria-copy/
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > atm-ria-copy/SOURCE_COMMIT
|
|
||||||
(cd atm-ria-copy && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-ATM-RIA-Copy-Sigma-Goats
|
|
||||||
path: atm-ria-copy
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
name: Citizens Load Barrier Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/citizens-ready-barrier-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
citizens-ready:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build and verify the scoped runtime fix
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneNPC test jar
|
|
||||||
gradle --no-daemon -p DuneLobby test jar
|
|
||||||
mkdir citizens-ready-artifacts
|
|
||||||
python3 tools/plugin_citizens_ready.py extract DuneNPC/build/libs/DuneRealms-NPC.jar DuneLobby/build/libs/DuneRealms-Lobby.jar citizens-ready-artifacts/citizens-ready.overlay.zip
|
|
||||||
cp tools/{plugin_citizens_ready,plugin_wild_update}.py citizens-ready-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > citizens-ready-artifacts/SOURCE_COMMIT
|
|
||||||
(cd citizens-ready-artifacts && sha256sum -- *.zip *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Citizens-Load-Barrier
|
|
||||||
path: citizens-ready-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
name: Compact Dune Menu Overlay
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['fix/compact-menu-links-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
compact-menu-links:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Test menu routes and package only scoped UI classes
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
for module in DuneRealmsGUI DuneMenus DuneLobby; do
|
|
||||||
gradle --no-daemon -p "$module" test jar
|
|
||||||
done
|
|
||||||
mkdir compact-menu-links
|
|
||||||
PYTHONPATH=tools python3 - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
from plugin_menu_polish import CLASSES
|
|
||||||
from plugin_wild_update import read_archive, write_archive
|
|
||||||
for module, jar in {"gui":"DuneRealmsGUI/build/libs/DunerealmsGUI.jar", "menus":"DuneMenus/build/libs/DuneMenus.jar", "lobby":"DuneLobby/build/libs/DuneRealms-Lobby.jar"}.items():
|
|
||||||
source = read_archive(Path(jar).read_bytes())
|
|
||||||
entries = list(CLASSES[module])
|
|
||||||
if module in ("gui", "menus"): entries.append("com/dunerealms/" + module + "/MenuPolish.class")
|
|
||||||
Path("compact-menu-links/" + module + ".zip").write_bytes(write_archive({e:source[e] for e in entries}))
|
|
||||||
PY
|
|
||||||
cp tools/{plugin_menu_polish.py,plugin_wild_update.py,CompactMenuMerge.java} compact-menu-links/
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > compact-menu-links/SOURCE_COMMIT
|
|
||||||
(cd compact-menu-links && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Compact-Menu-Links
|
|
||||||
path: compact-menu-links
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
name: Compact DuneMenus Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/dunemenus-compact-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
compact-menus:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Verify the DuneMenus-only transition
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneMenus test jar
|
|
||||||
python3 tools/test_plugin_fleet_install.py -v
|
|
||||||
python3 tools/plugin_compact_menus.py DuneMenus/build/libs/DuneMenus.jar
|
|
||||||
mkdir compact-menus-artifacts
|
|
||||||
cp DuneMenus/build/libs/DuneMenus.jar compact-menus-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > compact-menus-artifacts/SOURCE_COMMIT
|
|
||||||
python3 tools/write-plugin-manifest.py compact-menus-artifacts "$GITHUB_SHA"
|
|
||||||
cp tools/{install-plugin-fleet,plugin_compact_menus,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi}.py compact-menus-artifacts/
|
|
||||||
(cd compact-menus-artifacts && sha256sum -- *.jar *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Compact-Menus
|
|
||||||
path: compact-menus-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
name: Default Voice Permissions Operations Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['ops/default-player-voice-permissions-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
default-voice-permissions:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- name: Validate and package the scoped LuckPerms operation
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
python3 tools/test_default_voice_permissions.py -v
|
|
||||||
mkdir default-voice-artifacts
|
|
||||||
cp tools/{set-default-voice-permissions,allow-giedi-nether-pearl}.py default-voice-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > default-voice-artifacts/SOURCE_COMMIT
|
|
||||||
(cd default-voice-artifacts && sha256sum -- *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Default-Voice-Permissions
|
|
||||||
path: default-voice-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
name: DuneStaff Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/staff-tools-*', 'feat/tweaks-ladders-staff-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dune-staff:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build staff plugin and run its tests
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneStaff build
|
|
||||||
mkdir dune-staff-artifacts
|
|
||||||
cp DuneStaff/build/libs/DuneStaff.jar dune-staff-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > dune-staff-artifacts/SOURCE_COMMIT
|
|
||||||
(cd dune-staff-artifacts && sha256sum -- DuneStaff.jar SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-DuneStaff
|
|
||||||
path: dune-staff-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
name: DuneChat Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/dunechat-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dunechat:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build and test DuneChat
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneChat test jar
|
|
||||||
python3 tools/test_plugin_dunechat.py -v
|
|
||||||
mkdir dunechat-artifacts
|
|
||||||
cp DuneChat/build/libs/DuneChat.jar dunechat-artifacts/
|
|
||||||
cp tools/{plugin_dunechat,install-plugin-fleet,write-plugin-manifest,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi}.py dunechat-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > dunechat-artifacts/SOURCE_COMMIT
|
|
||||||
(cd dunechat-artifacts && sha256sum -- *.jar *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-DuneChat
|
|
||||||
path: dunechat-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
name: Planet DuneChest Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/dunechest-planets-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dunechest:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build DuneChest and verify the planet pack
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneChest test jar paperValidationJar
|
|
||||||
python3 tools/test_plugin_fleet_install.py -v
|
|
||||||
python3 tools/test_plugin_pack_properties.py -v
|
|
||||||
mkdir chest-artifacts
|
|
||||||
cp DuneChest/build/libs/DuneChest.jar chest-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > chest-artifacts/SOURCE_COMMIT
|
|
||||||
pack="chest-artifacts/DuneRealms-Resources-${GITHUB_SHA}.zip"
|
|
||||||
python3 tools/build-unified-resourcepack.py --source "$GITHUB_SHA" --output "$pack"
|
|
||||||
echo "c15a074da8edcf1404f16fd284aa0d12d16104743ce99e5702dec48370b87b4d $pack" | sha256sum --check
|
|
||||||
python3 tools/write-plugin-manifest.py chest-artifacts "$GITHUB_SHA"
|
|
||||||
cp tools/install-plugin-fleet.py tools/plugin_menu_pack.py tools/plugin_backend_abi.py tools/plugin_pillager_abi.py tools/plugin_fleet_rollback.py tools/plugin_pack_properties.py tools/publish-plugin-menu.py chest-artifacts/
|
|
||||||
(cd chest-artifacts && sha256sum -- *.jar *.zip *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Planet-DuneChest
|
|
||||||
path: chest-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneChest-Paper-Validation
|
|
||||||
path: DuneChest/build/libs/DuneChestPaperValidation.jar
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
name: DuneGroups Replacement Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/dunegroups-replacement-*', 'feat/dunegroups-fleet-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dunegroups:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build and test both replacement plugins
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p JarvisConnector test jar compileLobbyDuneGroupsBridge
|
|
||||||
gradle --no-daemon -p DuneGroups test jar
|
|
||||||
python3 tools/test_plugin_dunegroups.py -v
|
|
||||||
mkdir dunegroups-artifacts
|
|
||||||
cp JarvisConnector/build/libs/jarvistranslator.jar DuneGroups/build/libs/DuneGroups.jar dunegroups-artifacts/
|
|
||||||
cp JarvisConnector/build/classes/lobby-dunegroups/com/dunerealms/jarvis/NativeKeyWorker.class dunegroups-artifacts/lobby-native-key-worker.class
|
|
||||||
cp tools/{plugin_dunegroups,install-plugin-fleet,write-plugin-manifest,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi}.py dunegroups-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > dunegroups-artifacts/SOURCE_COMMIT
|
|
||||||
(cd dunegroups-artifacts && sha256sum -- *.jar *.py *.class SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-DuneGroups-Replacement
|
|
||||||
path: dunegroups-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
name: Elytra Anvil Overlay
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/anvil-elytra-merge-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
elytra-anvil:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Test JARVIS and build the anvil overlay
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p JarvisConnector test jar
|
|
||||||
mkdir elytra-anvil
|
|
||||||
PYTHONPATH=tools python3 - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
from plugin_elytra_anvil import ADDED, CHANGED, entry
|
|
||||||
from plugin_wild_update import read_archive, write_archive
|
|
||||||
source = read_archive(Path("JarvisConnector/build/libs/jarvistranslator.jar").read_bytes())
|
|
||||||
Path("elytra-anvil/donor.zip").write_bytes(write_archive({entry(name): source[entry(name)] for name in (*CHANGED, *ADDED)}))
|
|
||||||
PY
|
|
||||||
cp tools/{ElytraAnvilOverlay.java,plugin_elytra_anvil.py,plugin_wild_update.py} elytra-anvil/
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > elytra-anvil/SOURCE_COMMIT
|
|
||||||
(cd elytra-anvil && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Elytra-Anvil
|
|
||||||
path: elytra-anvil
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
name: Giedi Nether Ender Pearl Operations Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['ops/giedi-nether-ender-pearl-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
giedi-nether-pearl:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- name: Validate and package the scoped native command
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
python3 tools/test_giedi_nether_pearl.py -v
|
|
||||||
mkdir giedi-pearl-artifacts
|
|
||||||
cp tools/allow-giedi-nether-pearl.py giedi-pearl-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > giedi-pearl-artifacts/SOURCE_COMMIT
|
|
||||||
(cd giedi-pearl-artifacts && sha256sum -- *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Giedi-Nether-Ender-Pearl
|
|
||||||
path: giedi-pearl-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
name: Golden Path Quest Overlay
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/golden-path-finish-plugins-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
golden-path:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build and verify scoped quest payloads
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p JarvisConnector test jar
|
|
||||||
gradle --no-daemon -p DuneRealmsGUI test jar
|
|
||||||
mkdir golden-path
|
|
||||||
PYTHONPATH=tools python3 - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
from golden_path_artwork import ART, CATALOG, artwork
|
|
||||||
from plugin_golden_path import MODULES
|
|
||||||
from plugin_wild_update import read_archive, write_archive
|
|
||||||
|
|
||||||
root = Path(".")
|
|
||||||
output = Path("golden-path")
|
|
||||||
paths = {"gui": "DuneRealmsGUI/build/libs/DunerealmsGUI.jar",
|
|
||||||
"jarvis": "JarvisConnector/build/libs/jarvistranslator.jar"}
|
|
||||||
for name, (prefix, changed, added, resource) in MODULES.items():
|
|
||||||
jar = read_archive(Path(paths[name]).read_bytes())
|
|
||||||
entries = [prefix + cls + ".class" for cls in (*changed, *added)] + [resource]
|
|
||||||
(output / (name + "-donor.zip")).write_bytes(write_archive({entry: jar[entry] for entry in entries}))
|
|
||||||
art = {f"{ART}/{entry}": data for entry, data in artwork(root).items()}
|
|
||||||
art[CATALOG] = Path(CATALOG).read_bytes()
|
|
||||||
(output / "artwork.zip").write_bytes(write_archive(art))
|
|
||||||
PY
|
|
||||||
cp tools/{GoldenPathMerge.java,plugin_golden_path.py,golden_path_artwork.py,plugin_wild_update.py} golden-path/
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > golden-path/SOURCE_COMMIT
|
|
||||||
(cd golden-path && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Golden-Path
|
|
||||||
path: golden-path
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
name: Graded Tool Art Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['fix/graded-tool-halo-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
graded-tool-art:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- name: Assemble both deployed pack variants
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
mkdir graded-tool-art
|
|
||||||
base=$(PYTHONPATH=tools python3 -c 'from plugin_graded_tool_art import BASE_SOURCE; print(BASE_SOURCE)')
|
|
||||||
for variant in arrakis fleet; do
|
|
||||||
curl --fail --location --retry 2 "https://www.dunerealms.com/downloads/DuneRealms-Wild-$base-$variant.zip" -o "$variant.zip"
|
|
||||||
python3 tools/plugin_graded_tool_art.py "$variant" "$variant.zip" network/resource-pack/central/overlay network/resource-pack/dune-items/publication-pins.json "graded-tool-art/DuneRealms-Wild-$GITHUB_SHA-$variant.zip" > "graded-tool-art/$variant.json"
|
|
||||||
done
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > graded-tool-art/SOURCE_COMMIT
|
|
||||||
cp tools/{plugin_graded_tool_art,plugin_supplied_item_art,plugin_wild_update}.py graded-tool-art/
|
|
||||||
(cd graded-tool-art && sha256sum -- * > SHA256SUMS)
|
|
||||||
- name: Upload both checked packs
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Graded-Tool-Art
|
|
||||||
path: graded-tool-art
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
name: Guild and Cookbook Overlay
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['fix/guild-navigator-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
guild-cookbook:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Test and package exact overlay donors
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
for module in DuneRealmsGUI DuneNPC DuneLobby; do
|
|
||||||
gradle --no-daemon -p "$module" test jar
|
|
||||||
done
|
|
||||||
mkdir guild-cookbook
|
|
||||||
PYTHONPATH=tools python3 - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
from plugin_guild_cookbook import CLASSES
|
|
||||||
from plugin_wild_update import read_archive, write_archive
|
|
||||||
for module, jar in (
|
|
||||||
("gui", "DuneRealmsGUI/build/libs/DunerealmsGUI.jar"),
|
|
||||||
("npc", "DuneNPC/build/libs/DuneRealms-NPC.jar"),
|
|
||||||
("lobby", "DuneLobby/build/libs/DuneRealms-Lobby.jar"),
|
|
||||||
):
|
|
||||||
entries = read_archive(Path(jar).read_bytes())
|
|
||||||
Path(f"guild-cookbook/{module}.zip").write_bytes(write_archive({entry: entries[entry] for entry in CLASSES[module]}))
|
|
||||||
PY
|
|
||||||
cp tools/{GuildCookbookMerge.java,plugin_guild_cookbook.py,plugin_wild_update.py} guild-cookbook/
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > guild-cookbook/SOURCE_COMMIT
|
|
||||||
(cd guild-cookbook && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Guild-Cookbook
|
|
||||||
path: guild-cookbook
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
name: Home Dimension Return Overlay
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['fix/home-dimension-return-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
home-dimension:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Test DuneEss and extract the dimension route class
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneEss test jar
|
|
||||||
mkdir home-dimension
|
|
||||||
PYTHONPATH=tools python3 - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
from plugin_home_dimension import ROUTES
|
|
||||||
from plugin_wild_update import read_archive, write_archive
|
|
||||||
source = read_archive(Path("DuneEss/build/libs/DuneRealms-Essentials.jar").read_bytes())
|
|
||||||
Path("home-dimension/donor.zip").write_bytes(write_archive({ROUTES: source[ROUTES]}))
|
|
||||||
PY
|
|
||||||
cp tools/{HomeDimensionOverlay.java,plugin_home_dimension.py,plugin_wild_update.py} home-dimension/
|
|
||||||
printf '%s\n' "$GITHUB_SHA" > home-dimension/SOURCE_COMMIT
|
|
||||||
(cd home-dimension && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Home-Dimension-Return
|
|
||||||
path: home-dimension
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
name: Item Origin Remainders Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/item-origin-remainders-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
item-origin:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build tested provenance classes
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p JarvisConnector test jar
|
|
||||||
mkdir item-origin-artifacts
|
|
||||||
python3 tools/plugin_item_origin.py extract JarvisConnector/build/libs/jarvistranslator.jar item-origin-artifacts/item-origin.overlay.zip
|
|
||||||
cp tools/{plugin_item_origin,plugin_wild_update}.py item-origin-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > item-origin-artifacts/SOURCE_COMMIT
|
|
||||||
(cd item-origin-artifacts && sha256sum -- *.zip *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Item-Origin
|
|
||||||
path: item-origin-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
name: Arrakis Jerboa Redesign Build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: ['feat/arrakis-jerboa-*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
jerboa:
|
|
||||||
runs-on: dune-ci
|
|
||||||
steps:
|
|
||||||
- name: Check out exact revision
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
git init .
|
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
|
||||||
git checkout --detach FETCH_HEAD
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: '21'
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
|
||||||
with:
|
|
||||||
gradle-version: '9.2.1'
|
|
||||||
- name: Build Terrain and verify Arrakis jerboa art
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
gradle --no-daemon -p DuneTerrain test jar
|
|
||||||
python3 tools/test_plugin_fleet_install.py -v
|
|
||||||
python3 tools/test_plugin_pack_properties.py -v
|
|
||||||
mkdir jerboa-artifacts
|
|
||||||
cp DuneTerrain/build/libs/DuneRealms-Terrain.jar jerboa-artifacts/
|
|
||||||
printf '%s\n' "$(git rev-parse HEAD)" > jerboa-artifacts/SOURCE_COMMIT
|
|
||||||
pack="jerboa-artifacts/DuneRealms-Resources-${GITHUB_SHA}.zip"
|
|
||||||
python3 tools/build-unified-resourcepack.py --source "$GITHUB_SHA" --output "$pack"
|
|
||||||
curl --fail --location --retry 2 https://www.dunerealms.com/downloads/DuneRealms-Resources-2faba139906da15741db2702b3bed3e92ad7ee26.zip -o arrakis-baseline.zip
|
|
||||||
python3 tools/plugin_arrakis_jerboa.py DuneTerrain/build/libs/DuneRealms-Terrain.jar arrakis-baseline.zip "$pack"
|
|
||||||
python3 tools/write-plugin-manifest.py jerboa-artifacts "$GITHUB_SHA"
|
|
||||||
cp tools/plugin_arrakis_jerboa.py tools/install-plugin-fleet.py tools/plugin_menu_pack.py tools/plugin_backend_abi.py tools/plugin_pillager_abi.py tools/plugin_fleet_rollback.py tools/plugin_pack_properties.py tools/publish-plugin-menu.py jerboa-artifacts/
|
|
||||||
(cd jerboa-artifacts && sha256sum -- *.jar *.zip *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: DuneRealms-Arrakis-Jerboa
|
|
||||||
path: jerboa-artifacts/
|
|
||||||
if-no-files-found: error
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue

Staff