name: DuneRealms Plugin CI on: workflow_dispatch: push: branches: ['**'] jobs: plugins: 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 build first-party plugins shell: bash run: | set -euo pipefail modules=(DuneEss DuneLobby DuneLobbyAccount DuneNPC DuneRealms-minecraft-only DuneRealmsGUI DuneTerrain JarvisConnector DuneMenus DuneGroups) mkdir -p plugin-artifacts for module in "${modules[@]}"; do gradle --no-daemon -p "$module" test jar done # This release restores presentation only. Never ship the known-incompatible # rebuilt economy/backend modules as accidental fleet install candidates. for module in DuneLobby DuneNPC DuneRealmsGUI DuneMenus; do for jar in "$module"/build/libs/*.jar; do test -f "$jar" artifact="plugin-artifacts/${jar##*/}" test ! -e "$artifact" cp "$jar" "$artifact" done done printf '%s\n' "$(git rev-parse HEAD)" > plugin-artifacts/SOURCE_COMMIT (cd plugin-artifacts && sha256sum -- *.jar SOURCE_COMMIT > SHA256SUMS) - name: Validate rollout contract and build stacked menu overlay shell: bash env: REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail python3 tools/test_plugin_ci_policy.py -v pillager_input="$(mktemp -d)" 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 # 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_fleet_install.py -v python3 tools/test_plugin_menu_pack.py -v python3 tools/test_plugin_backend_abi.py -v python3 tools/test_plugin_fleet_rollback.py -v python3 tools/test_plugin_resource_pack.py -v python3 tools/test_plugin_vanilla_art.py -v python3 tools/test_plugin_pack_properties.py -v python3 tools/test_gameplay_resourcepack.py -v python3 tools/build-unified-resourcepack.py --source "$GITHUB_SHA" --output "plugin-artifacts/DuneRealms-Resources-${GITHUB_SHA}.zip" python3 tools/write-plugin-manifest.py plugin-artifacts "$GITHUB_SHA" cp tools/install-plugin-fleet.py tools/plugin_menu_pack.py tools/plugin_backend_abi.py tools/plugin_fleet_rollback.py tools/plugin_pack_properties.py tools/publish-plugin-menu.py tools/plugin_pillager_abi.py plugin-artifacts/ cp DuneMenus/src/test/resources/preserved-backend-abi.json plugin-artifacts/ cp DuneMenus/docs/FLEET-INSTALL.md DuneMenus/docs/MENU-PACK-ROLLOUT.md DuneMenus/docs/CANARY-RECOVERY-20261129.md plugin-artifacts/ cp DuneMenus/docs/CENTRAL-PACK-INTEGRATION.md plugin-artifacts/ (cd plugin-artifacts && sha256sum -- *.jar *.zip *.json *.py *.md SOURCE_COMMIT > SHA256SUMS) - uses: actions/upload-artifact@v3 with: name: DuneRealms-Plugins path: plugin-artifacts/ if-no-files-found: error