plugins/.forgejo/workflows/citizens-ready-barrier.yml
unimatrixgit 64248beb1e
Some checks failed
DuneRealms Plugin CI / plugins (push) Has been cancelled
Citizens Load Barrier Build / citizens-ready (push) Has been cancelled
Wait for Citizens to load its stored NPCs before migration
2026-12-03 22:29:18 +01:00

42 lines
1.7 KiB
YAML

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