plugins/.forgejo/workflows/dunechest.yml
unimatrixgit fc4fb60914
All checks were successful
Planet DuneChest Build / dunechest (push) Successful in 55s
DuneRealms Plugin CI / plugins (push) Successful in 2m41s
Pin the unchanged current unified pack for compatibility builds
2026-11-30 23:19:19 +01:00

52 lines
2.3 KiB
YAML

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