plugins/.forgejo/workflows/planet-ore-profiles.yml
unimatrixgit b54c277568
Some checks failed
Planet Ore Profiles Build / planet-ore-profiles (push) Successful in 42s
DuneRealms Resourcepack CI / resourcepack (push) Failing after 11s
DuneRealms Plugin CI / plugins (push) Successful in 2m59s
Use vanilla height profiles for existing planet ores
2026-12-02 07:08:09 +01:00

52 lines
2 KiB
YAML

name: Planet Ore Profiles Build
on:
workflow_dispatch:
push:
branches: ['feat/planet-ore-profiles-*']
jobs:
planet-ore-profiles:
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 ore sampler
shell: bash
run: |
set -euo pipefail
gradle --no-daemon -p DuneTerrain test jar
python3 tools/test_planet_ore_release.py
mkdir planet-ore-artifacts
python3 tools/planet_ore_release.py extract DuneTerrain/build/libs/DuneRealms-Terrain.jar planet-ore-artifacts/ore-heights.zip
cp tools/{PlanetOreTransition.java,planet_ore_release.py,reset-planet-ores.py} planet-ore-artifacts/
cp DuneTerrain/planet-datapacks/sigma_draconis_iv/data/dunerealms/worldgen/biome/frozen_desert.json planet-ore-artifacts/
printf '%s\n' "$(git rev-parse HEAD)" > planet-ore-artifacts/SOURCE_COMMIT
(cd planet-ore-artifacts && sha256sum -- *.java *.json *.py *.zip SOURCE_COMMIT > SHA256SUMS)
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- name: Verify the class transition builder
shell: bash
run: |
set -euo pipefail
javac -d "$(mktemp -d)" tools/PlanetOreTransition.java
- uses: actions/upload-artifact@v3
with:
name: DuneRealms-Planet-Ore-Profiles
path: planet-ore-artifacts/
if-no-files-found: error