43 lines
1.7 KiB
YAML
43 lines
1.7 KiB
YAML
name: Lobby Account Provisioning Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['feat/lobby-first-join-account-*']
|
|
|
|
jobs:
|
|
lobby-account:
|
|
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 standalone Lobby module
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
gradle --no-daemon -p DuneLobbyAccount test jar
|
|
python3 tools/test_plugin_fleet_install.py -v
|
|
mkdir lobby-account-artifacts
|
|
cp DuneLobbyAccount/build/libs/DuneLobbyAccount.jar lobby-account-artifacts/
|
|
printf '%s\n' "$(git rev-parse HEAD)" > lobby-account-artifacts/SOURCE_COMMIT
|
|
python3 tools/write-plugin-manifest.py lobby-account-artifacts "$GITHUB_SHA"
|
|
cp tools/{install-plugin-fleet,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi}.py lobby-account-artifacts/
|
|
(cd lobby-account-artifacts && sha256sum -- *.jar *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Lobby-Account
|
|
path: lobby-account-artifacts/
|
|
if-no-files-found: error
|

Staff