plugins/.forgejo/workflows/sigma-snow-weather.yml
unimatrixgit c11f0031fc
Some checks failed
Sigma Snow Weather Build / sigma-snow-weather (push) Successful in 1m26s
DuneRealms Plugin CI / plugins (push) Successful in 9m3s
DuneRealms Resourcepack CI / resourcepack (push) Failing after 14s
Require precipitation for Sigma soil snowfall
2026-12-03 20:55:43 +01:00

42 lines
1.6 KiB
YAML

name: Sigma Snow Weather Build
on:
workflow_dispatch:
push:
branches: ['fix/sigma-snow-weather-*']
jobs:
sigma-snow-weather:
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 Sigma soil class patch
shell: bash
run: |
set -euo pipefail
gradle --no-daemon -p DuneTerrain test jar
mkdir sigma-snow-weather-artifacts
python3 tools/plugin_sigma_snow_weather.py DuneTerrain/build/libs/DuneRealms-Terrain.jar sigma-snow-weather-artifacts/sigma-snow-weather-classes.zip
cp tools/plugin_sigma_snow_weather.py sigma-snow-weather-artifacts/
printf '%s\n' "$(git rev-parse HEAD)" > sigma-snow-weather-artifacts/SOURCE_COMMIT
(cd sigma-snow-weather-artifacts && sha256sum -- sigma-snow-weather-classes.zip *.py SOURCE_COMMIT > SHA256SUMS)
- uses: actions/upload-artifact@v3
with:
name: DuneRealms-Sigma-Snow-Weather
path: sigma-snow-weather-artifacts/
if-no-files-found: error