Keep Arrakis-only food registration out of Lobby startup
This commit is contained in:
parent
670ad0de5f
commit
ac64d0d5f2
1 changed files with 101 additions and 0 deletions
41
.forgejo/workflows/lobby-food-startup.yml
Normal file
41
.forgejo/workflows/lobby-food-startup.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
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
|
||||
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.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 plugin_lobby_food.py SOURCE_COMMIT > SHA256SUMS)
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: DuneRealms-Lobby-Food-Startup
|
||||
path: lobby-food-artifacts/
|
||||
if-no-files-found: error
|
||||
Loading…
Reference in a new issue

Staff