44 lines
1.8 KiB
YAML
44 lines
1.8 KiB
YAML
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
|

Staff