42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
name: Lobby Food Startup Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['fix/lobby-food-startup-*']
|
|
|
|
jobs:
|
|
lobby-food:
|
|
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 Lobby listener patch
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
gradle --no-daemon -p JarvisConnector test jar
|
|
python3 tools/test_plugin_fleet_install.py -v
|
|
mkdir lobby-food-artifacts
|
|
python3 tools/plugin_lobby_food.py JarvisConnector/build/libs/jarvistranslator.jar lobby-food-artifacts/lobby-food-classes.zip
|
|
cp tools/{plugin_lobby_food,install-plugin-fleet,write-plugin-manifest,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi}.py lobby-food-artifacts/
|
|
printf '%s\n' "$(git rev-parse HEAD)" > lobby-food-artifacts/SOURCE_COMMIT
|
|
(cd lobby-food-artifacts && sha256sum -- lobby-food-classes.zip *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Lobby-Food-Startup
|
|
path: lobby-food-artifacts/
|
|
if-no-files-found: error
|

Staff