44 lines
1.8 KiB
YAML
44 lines
1.8 KiB
YAML
name: Arrakis Raw Spice Build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['fix/arrakis-raw-spice-*']
|
|
|
|
jobs:
|
|
raw-spice:
|
|
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: Verify the Arrakis JARVIS-only transition
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
gradle --no-daemon -p JarvisConnector test jar
|
|
python3 tools/test_plugin_fleet_install.py -v
|
|
python3 tools/plugin_arrakis_raw_spice.py JarvisConnector/build/libs/jarvistranslator.jar
|
|
mkdir raw-spice-artifacts
|
|
cp JarvisConnector/build/libs/jarvistranslator.jar raw-spice-artifacts/
|
|
printf '%s\n' "$(git rev-parse HEAD)" > raw-spice-artifacts/SOURCE_COMMIT
|
|
python3 tools/write-plugin-manifest.py raw-spice-artifacts "$GITHUB_SHA"
|
|
cp tools/{install-plugin-fleet,plugin_arrakis_raw_spice,plugin_menu_pack,plugin_backend_abi,plugin_fleet_rollback,plugin_pack_properties,plugin_pillager_abi,reset-arrakis-terrain}.py raw-spice-artifacts/
|
|
(cd raw-spice-artifacts && sha256sum -- *.jar *.json *.py SOURCE_COMMIT > SHA256SUMS)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneRealms-Arrakis-Raw-Spice
|
|
path: raw-spice-artifacts/
|
|
if-no-files-found: error
|

Staff