plugins/.forgejo/workflows/native-plot-command.yml
unimatrixgit 130520ff1f
Some checks failed
Native Plot Command Policy Build / native-plot-command (push) Successful in 27s
DuneRealms Plugin CI / plugins (push) Failing after 2m3s
Route legacy Towny plot writes through organisation keys
2026-12-02 12:38:18 +01:00

40 lines
1.6 KiB
YAML

name: Native Plot Command Policy Build
on:
workflow_dispatch:
push:
branches: ['fix/native-plot-command-policy-*']
jobs:
native-plot-command:
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 the exact command policy class
shell: bash
run: |
set -euo pipefail
gradle --no-daemon -p JarvisConnector test --tests com.dunerealms.jarvis.NativeCommandPolicyTest
mkdir native-plot-command-artifacts
cp JarvisConnector/build/classes/java/main/com/dunerealms/jarvis/NativeCommandPolicy.class native-plot-command-artifacts/
printf '%s\n' "$(git rev-parse HEAD)" > native-plot-command-artifacts/SOURCE_COMMIT
(cd native-plot-command-artifacts && sha256sum -- NativeCommandPolicy.class SOURCE_COMMIT > SHA256SUMS)
- uses: actions/upload-artifact@v3
with:
name: DuneRealms-Native-Plot-Command-Policy
path: native-plot-command-artifacts/
if-no-files-found: error