Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b6199d781 | ||
|
|
b028e1a954 | ||
|
|
54aa55b2a1 | ||
|
|
10bc088bb1 | ||
|
|
5c8361b920 | ||
|
|
f828cf2724 | ||
|
|
97704cd038 | ||
|
|
ef5c5babfc | ||
|
|
2f6b076b30 | ||
|
|
4b5401fbd1 | ||
|
|
522d40d7b2 | ||
|
|
9e8f23810a | ||
|
|
986bf4d57e | ||
|
|
903e21dbe6 | ||
|
|
1309c4d338 | ||
|
|
2c6aedaf8a | ||
|
|
0e790bd154 | ||
|
|
aa9ed1ce9f | ||
|
|
0e0c484564 | ||
|
|
c5550fd96c | ||
|
|
06aecf855e | ||
|
|
c87803a3e8 | ||
|
|
22a2b38211 | ||
|
|
f4f8312f71 | ||
|
|
534cfb1959 | ||
|
|
8251851bc8 | ||
|
|
35d153b516 | ||
|
|
61000857d0 | ||
|
|
b4dd9e42c3 | ||
|
|
31dbf92e9c | ||
|
|
c35522facd | ||
|
|
2fff101b68 | ||
|
|
c470f2e983 | ||
|
|
70cc6a9f70 | ||
|
|
0b9cbc4b8e | ||
|
|
be735f3c4f | ||
|
|
0330ec9653 | ||
|
|
6362575c34 | ||
|
|
c3a36b2a30 | ||
|
|
74c8cd95fc | ||
|
|
399162e55e | ||
|
|
acb09368f1 | ||
|
|
24a1c246e0 | ||
|
|
693037a982 | ||
|
|
1a1f6c8d09 | ||
|
|
dfc181d7d8 | ||
|
|
f6b97434ee | ||
|
|
5bb36a4eb2 | ||
|
|
2e339864b9 | ||
|
|
f9484ff164 | ||
|
|
343084a60e | ||
|
|
a85bd084a8 | ||
|
|
bf08c6b1c2 | ||
|
|
fe589553aa | ||
|
|
a042067cd4 | ||
|
|
87df675d11 | ||
|
|
00147b2908 | ||
|
|
78eb59c363 | ||
|
|
2077c17b23 | ||
|
|
1468adcb73 | ||
|
|
9aee915653 | ||
|
|
43fd597fbe | ||
|
|
e9c8db19a0 | ||
|
|
b01ce00a86 | ||
|
|
1051d71963 | ||
|
|
e3f62c4e94 | ||
|
|
9bbd2b658f | ||
|
|
63a771d74a | ||
|
|
64b1740571 | ||
|
|
64248beb1e | ||
|
|
13a8f23247 | ||
|
|
ac8ac24584 | ||
|
|
1347f42c7c | ||
|
|
de64f5c6d2 | ||
|
|
bb6cb3c8fe | ||
|
|
1606d46d21 | ||
|
|
3f5a09d4ce | ||
|
|
5ff7eca20b | ||
|
|
1a9d281d18 | ||
|
|
f46b26d956 | ||
|
|
018d776874 | ||
|
|
9bee81c1a2 | ||
|
|
637ca3a5b4 | ||
|
|
886e0a0e49 | ||
|
|
00b60fc976 | ||
|
|
c11f0031fc | ||
|
|
c9944bb832 | ||
|
|
86c6142469 | ||
|
|
d7bcd912ac | ||
|
|
622f7ab6cd | ||
|
|
944fa69b69 | ||
|
|
2f700ae7cc | ||
|
|
19200b07ad | ||
|
|
a5813cc270 | ||
|
|
186022581a | ||
|
|
5986ca938f | ||
|
|
2e46113a99 | ||
|
|
c111baba8f | ||
|
|
fb3a74b316 | ||
|
|
c37b65af52 |
4866 changed files with 165839 additions and 239 deletions
47
.forgejo/workflows/atm-ria-copy.yml
Normal file
47
.forgejo/workflows/atm-ria-copy.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
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
|
||||||
42
.forgejo/workflows/citizens-ready-barrier.yml
Normal file
42
.forgejo/workflows/citizens-ready-barrier.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
52
.forgejo/workflows/compact-menu-links.yml
Normal file
52
.forgejo/workflows/compact-menu-links.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
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
|
||||||
40
.forgejo/workflows/dune-staff.yml
Normal file
40
.forgejo/workflows/dune-staff.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
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
|
||||||
42
.forgejo/workflows/dunechat.yml
Normal file
42
.forgejo/workflows/dunechat.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
44
.forgejo/workflows/dunegroups.yml
Normal file
44
.forgejo/workflows/dunegroups.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
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
|
||||||
47
.forgejo/workflows/elytra-anvil.yml
Normal file
47
.forgejo/workflows/elytra-anvil.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
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
|
||||||
59
.forgejo/workflows/golden-path.yml
Normal file
59
.forgejo/workflows/golden-path.yml
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
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
|
||||||
38
.forgejo/workflows/graded-tool-art.yml
Normal file
38
.forgejo/workflows/graded-tool-art.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
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
|
||||||
54
.forgejo/workflows/guild-cookbook.yml
Normal file
54
.forgejo/workflows/guild-cookbook.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
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
|
||||||
47
.forgejo/workflows/home-dimension.yml
Normal file
47
.forgejo/workflows/home-dimension.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
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
|
||||||
41
.forgejo/workflows/item-origin-remainders.yml
Normal file
41
.forgejo/workflows/item-origin-remainders.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
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
|
||||||
51
.forgejo/workflows/lobby-builder-safety.yml
Normal file
51
.forgejo/workflows/lobby-builder-safety.yml
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
name: Profile-safe Lobby Builder
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['fix/compact-menu-links-*']
|
||||||
|
jobs:
|
||||||
|
builder-safety:
|
||||||
|
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 inventory isolation and package the scoped classes
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
gradle --no-daemon -p DuneRealms-minecraft-only test jar
|
||||||
|
gradle --no-daemon -p DuneStaff test jar
|
||||||
|
mkdir lobby-builder-safety
|
||||||
|
PYTHONPATH=tools python3 - <<'PY'
|
||||||
|
from pathlib import Path
|
||||||
|
from plugin_builder_multiverse import CORE, BUILDER, CORE_CLASSES, LEASE, BUILDER_CLASSES
|
||||||
|
from plugin_wild_update import read_archive, write_archive
|
||||||
|
for name, jar, entries in [
|
||||||
|
("core", "DuneRealms-minecraft-only/build/libs/DuneRealms-Core.jar", [CORE+n for n in CORE_CLASSES+[LEASE]]),
|
||||||
|
("builder", "DuneStaff/build/libs/DuneStaff.jar", [BUILDER+n for n in BUILDER_CLASSES])
|
||||||
|
]:
|
||||||
|
compiled=read_archive(Path(jar).read_bytes())
|
||||||
|
Path("lobby-builder-safety/"+name+".zip").write_bytes(write_archive({n:compiled[n] for n in entries}))
|
||||||
|
PY
|
||||||
|
cp tools/{plugin_builder_multiverse.py,plugin_wild_update.py,BuilderProfileCoreOverlay.java} lobby-builder-safety/
|
||||||
|
printf '%s\n' "$GITHUB_SHA" > lobby-builder-safety/SOURCE_COMMIT
|
||||||
|
(cd lobby-builder-safety && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Lobby-Builder-Safety
|
||||||
|
path: lobby-builder-safety
|
||||||
|
if-no-files-found: error
|
||||||
49
.forgejo/workflows/lobby-pack-session.yml
Normal file
49
.forgejo/workflows/lobby-pack-session.yml
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
name: Lobby Pack Session Overlay
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['feat/lobby-pack-session-*']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lobby-pack-session:
|
||||||
|
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 proof handling and package the scoped proxy and GUI artifacts
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
gradle --no-daemon -p DuneRealmsGUI test jar
|
||||||
|
gradle --no-daemon -p DunePackProxy jar
|
||||||
|
mkdir lobby-pack-session
|
||||||
|
PYTHONPATH=tools python3 - <<'PY'
|
||||||
|
from pathlib import Path
|
||||||
|
from plugin_network_pack_menu import NEW, PATCHED
|
||||||
|
from plugin_wild_update import read_archive, write_archive
|
||||||
|
installed = read_archive(Path("DuneRealmsGUI/build/libs/DunerealmsGUI.jar").read_bytes())
|
||||||
|
Path("lobby-pack-session/gui-donor.zip").write_bytes(write_archive({entry: installed[entry] for entry in PATCHED + NEW}))
|
||||||
|
PY
|
||||||
|
cp DunePackProxy/build/libs/DunePackProxy.jar lobby-pack-session/
|
||||||
|
cp tools/{NetworkPackMenuMerge.java,plugin_network_pack_menu.py,plugin_wild_update.py,build_network_pack.py} lobby-pack-session/
|
||||||
|
printf '%s\n' "$GITHUB_SHA" > lobby-pack-session/SOURCE_COMMIT
|
||||||
|
(cd lobby-pack-session && sha256sum -- *.zip *.jar *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Lobby-Pack-Session
|
||||||
|
path: lobby-pack-session
|
||||||
|
if-no-files-found: error
|
||||||
29
.forgejo/workflows/multiverse-core-lobby.yml
Normal file
29
.forgejo/workflows/multiverse-core-lobby.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
name: Reviewed Lobby Multiverse Core
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['fix/compact-menu-links-*']
|
||||||
|
jobs:
|
||||||
|
multiverse-core:
|
||||||
|
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: Verify the official Core input and package Lobby configuration
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
python3 tools/test_multiverse_core.py -v
|
||||||
|
python3 tools/stage_multiverse_core.py multiverse-core-lobby "$GITHUB_SHA"
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Multiverse-Core-Lobby
|
||||||
|
path: multiverse-core-lobby
|
||||||
|
if-no-files-found: error
|
||||||
47
.forgejo/workflows/native-workstation.yml
Normal file
47
.forgejo/workflows/native-workstation.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
name: Native Workstation Origin Overlay
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['fix/native-workstation-outputs-*']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
native-workstation:
|
||||||
|
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 producer overlay
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
gradle --no-daemon -p JarvisConnector test jar
|
||||||
|
mkdir native-workstation
|
||||||
|
PYTHONPATH=tools python3 - <<'PY'
|
||||||
|
from pathlib import Path
|
||||||
|
from plugin_native_workstation import ENTRY, NEW
|
||||||
|
from plugin_wild_update import read_archive, write_archive
|
||||||
|
source = read_archive(Path("JarvisConnector/build/libs/jarvistranslator.jar").read_bytes())
|
||||||
|
Path("native-workstation/donor.zip").write_bytes(write_archive({entry: source[entry] for entry in [ENTRY, *NEW]}))
|
||||||
|
PY
|
||||||
|
cp tools/{NativeWorkstationMerge.java,plugin_native_workstation.py,plugin_wild_update.py} native-workstation/
|
||||||
|
printf '%s\n' "$GITHUB_SHA" > native-workstation/SOURCE_COMMIT
|
||||||
|
(cd native-workstation && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Native-Workstation-Origin
|
||||||
|
path: native-workstation
|
||||||
|
if-no-files-found: error
|
||||||
45
.forgejo/workflows/network-loot.yml
Normal file
45
.forgejo/workflows/network-loot.yml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
name: Network Native Loot Datapack
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['fix/network-loot-release-*']
|
||||||
|
jobs:
|
||||||
|
network-loot:
|
||||||
|
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: Package exact reviewed loot files
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
mkdir network-loot
|
||||||
|
python3 tools/plugin_network_loot.py DuneTerrain/network-loot-datapack network-loot/dunerealms-network-loot.zip
|
||||||
|
python3 - <<'PY'
|
||||||
|
import json, zipfile
|
||||||
|
from pathlib import Path
|
||||||
|
with zipfile.ZipFile('network-loot/dunerealms-network-loot.zip') as archive:
|
||||||
|
for name in archive.namelist():
|
||||||
|
assert archive.read(name)==Path('DuneTerrain/network-loot-datapack',name).read_bytes()
|
||||||
|
chest=json.loads(archive.read('data/minecraft/loot_table/blocks/ender_chest.json'))
|
||||||
|
shell=json.loads(archive.read('data/minecraft/loot_table/entities/shulker.json'))
|
||||||
|
assert chest['pools'][0]['entries']==[{'type':'minecraft:item','name':'minecraft:ender_chest'}]
|
||||||
|
assert chest['pools'][0]['conditions']==[{'condition':'minecraft:survives_explosion'}]
|
||||||
|
assert shell['pools'][0]['entries'][0]['functions']==[{'function':'minecraft:set_count','count':2}]
|
||||||
|
PY
|
||||||
|
cp tools/{plugin_network_loot.py,plugin_wild_update.py} network-loot/
|
||||||
|
cp DuneTerrain/docs/network-loot-datapack.md network-loot/ACTIVATION.md
|
||||||
|
printf '%s\n' "$GITHUB_SHA" > network-loot/SOURCE_COMMIT
|
||||||
|
(cd network-loot && sha256sum -- *.zip *.py ACTIVATION.md SOURCE_COMMIT > SHA256SUMS)
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Network-Native-Loot
|
||||||
|
path: network-loot
|
||||||
|
if-no-files-found: error
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
modules=(DuneEss DuneLobby DuneLobbyAccount DuneNPC DuneRealms-minecraft-only DuneRealmsGUI DuneTerrain JarvisConnector DuneMenus)
|
modules=(DuneEss DuneLobby DuneLobbyAccount DuneNPC DuneRealms-minecraft-only DuneRealmsGUI DuneTerrain JarvisConnector DuneMenus DuneGroups)
|
||||||
mkdir -p plugin-artifacts
|
mkdir -p plugin-artifacts
|
||||||
for module in "${modules[@]}"; do
|
for module in "${modules[@]}"; do
|
||||||
gradle --no-daemon -p "$module" test jar
|
gradle --no-daemon -p "$module" test jar
|
||||||
|
|
@ -47,13 +47,26 @@ jobs:
|
||||||
(cd plugin-artifacts && sha256sum -- *.jar SOURCE_COMMIT > SHA256SUMS)
|
(cd plugin-artifacts && sha256sum -- *.jar SOURCE_COMMIT > SHA256SUMS)
|
||||||
- name: Validate rollout contract and build stacked menu overlay
|
- name: Validate rollout contract and build stacked menu overlay
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
python3 tools/test_plugin_ci_policy.py -v
|
python3 tools/test_plugin_ci_policy.py -v
|
||||||
pillager_input="$(mktemp -d)"
|
pillager_input="$(mktemp -d)"
|
||||||
python3 tools/plugin_navigator_transition.py --stage-pillager-baseline "$pillager_input/baseline"
|
python3 tools/plugin_navigator_transition.py --stage-pillager-baseline "$pillager_input/baseline"
|
||||||
DUNE_PILLAGER_BASELINE_DIR="$pillager_input/baseline" python3 tools/test_plugin_pillager_profile.py -v
|
DUNE_PILLAGER_BASELINE_DIR="$pillager_input/baseline" python3 tools/test_plugin_pillager_profile.py -v
|
||||||
python3 tools/plugin_navigator_transition.py
|
# Navigator predates the selectable DuneGroups backend. Validate its
|
||||||
|
# exact historical connector against the original unchanged contract.
|
||||||
|
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 5d727d7f59e6af26fba07a3878fd79035a5923ce
|
||||||
|
git worktree add --detach "$pillager_input/navigator" FETCH_HEAD
|
||||||
|
gradle --no-daemon -p "$pillager_input/navigator/JarvisConnector" jar
|
||||||
|
# Check the final accepted Navigator frontends at their source pin; the current
|
||||||
|
# tree has independent required tests and can legitimately contain newer artwork.
|
||||||
|
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 313db14fb4fdda1f7193e86499f1041b15e9d04b
|
||||||
|
git worktree add --detach "$pillager_input/navigator-frontends" FETCH_HEAD
|
||||||
|
gradle --no-daemon -p "$pillager_input/navigator-frontends/DuneMenus" jar
|
||||||
|
gradle --no-daemon -p "$pillager_input/navigator-frontends/DuneRealmsGUI" jar
|
||||||
|
python3 tools/plugin_navigator_transition.py --historical-jarvis "$pillager_input/navigator/JarvisConnector/build/libs/jarvistranslator.jar" --historical-frontends "$pillager_input/navigator-frontends"
|
||||||
python3 tools/test_plugin_pillager_art.py -v
|
python3 tools/test_plugin_pillager_art.py -v
|
||||||
python3 tools/test_plugin_fleet_install.py -v
|
python3 tools/test_plugin_fleet_install.py -v
|
||||||
python3 tools/test_plugin_menu_pack.py -v
|
python3 tools/test_plugin_menu_pack.py -v
|
||||||
|
|
|
||||||
51
.forgejo/workflows/quest-story-arcs.yml
Normal file
51
.forgejo/workflows/quest-story-arcs.yml
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
name: Quest Arc Presentation Overlay
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['feat/quest-story-arcs-*']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
quest-story-arcs:
|
||||||
|
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 the journal and package only quest arc classes and art
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
gradle --no-daemon -p DuneRealmsGUI test jar
|
||||||
|
mkdir quest-story-arcs
|
||||||
|
PYTHONPATH=tools python3 - <<'PY'
|
||||||
|
from pathlib import Path
|
||||||
|
from quest_arc_artwork import CATALOG, OVERLAY, artwork, gui_entries
|
||||||
|
from plugin_wild_update import read_archive, write_archive
|
||||||
|
source = read_archive(Path("DuneRealmsGUI/build/libs/DunerealmsGUI.jar").read_bytes())
|
||||||
|
Path("quest-story-arcs/donor.zip").write_bytes(write_archive({entry: source[entry] for entry in gui_entries()}))
|
||||||
|
assets = artwork(Path("."))
|
||||||
|
art = {f"{OVERLAY}/{name}": data for name, data in assets.items()}
|
||||||
|
art[CATALOG] = Path(CATALOG).read_bytes()
|
||||||
|
Path("quest-story-arcs/artwork.zip").write_bytes(write_archive(art))
|
||||||
|
PY
|
||||||
|
cp tools/{quest_arc_artwork.py,plugin_wild_update.py} quest-story-arcs/
|
||||||
|
printf '%s\n' "$GITHUB_SHA" > quest-story-arcs/SOURCE_COMMIT
|
||||||
|
(cd quest-story-arcs && sha256sum -- *.zip *.py SOURCE_COMMIT > SHA256SUMS)
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Quest-Story-Arcs
|
||||||
|
path: quest-story-arcs
|
||||||
|
if-no-files-found: error
|
||||||
49
.forgejo/workflows/sigma-cold-pigs.yml
Normal file
49
.forgejo/workflows/sigma-cold-pigs.yml
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
name: Sigma Cold Pigs Overlay
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: ['fix/sigma-cold-pigs-*']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sigma-cold-pigs:
|
||||||
|
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 Terrain and package the reviewed donor class
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
gradle --no-daemon -p DuneTerrain test jar
|
||||||
|
mkdir sigma-cold-pigs
|
||||||
|
PYTHONPATH=tools python3 - <<'PY'
|
||||||
|
from pathlib import Path
|
||||||
|
from plugin_sigma_cold_pigs import ENTRY
|
||||||
|
from plugin_wild_update import read_archive, write_archive
|
||||||
|
jars = list(Path("DuneTerrain/build/libs").glob("*.jar"))
|
||||||
|
assert len(jars) == 1
|
||||||
|
entries = read_archive(jars[0].read_bytes())
|
||||||
|
Path("sigma-cold-pigs/donor.zip").write_bytes(write_archive({ENTRY: entries[ENTRY]}))
|
||||||
|
PY
|
||||||
|
cp tools/{SigmaColdPigMerge.java,plugin_sigma_cold_pigs.py,plugin_wild_update.py} sigma-cold-pigs/
|
||||||
|
printf '%s\n' "$GITHUB_SHA" > sigma-cold-pigs/SOURCE_COMMIT
|
||||||
|
(cd sigma-cold-pigs && sha256sum -- *.zip *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: DuneRealms-Sigma-Cold-Pigs
|
||||||
|
path: sigma-cold-pigs
|
||||||
|
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