Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Modern Metals 1.13.2 CI
name: Modern Metals 1.14.4 CI

on:
push:
branches: [master-1.13.2, 'feature/**']
branches: [master-1.14.4, 'feature/**']
pull_request:
branches: [master-1.13.2]
branches: [master-1.14.4]

permissions:
contents: read

concurrency:
group: modernmetals-113-${{ github.workflow }}-${{ github.ref }}
group: modernmetals-114-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -41,10 +41,10 @@ jobs:
- name: Set up Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
- name: Stage checksum-verified published dependencies
run: bash gradle/stage-orespawn-release.sh .gradle/release-dependencies
run: bash gradle/stage-release-dependencies.sh .gradle/release-dependencies
- name: Build, audit and generate Eclipse launches
run: |
bash ./gradlew clean check build javadoc verify113ReleaseArtifacts write113ReleaseChecksums genEclipseRuns eclipse \
bash ./gradlew clean check build javadoc verify114ReleaseArtifacts write114ReleaseChecksums genEclipseRuns eclipse \
-PreleaseBuild=true -PdependencyMirror="$PWD/.gradle/release-dependencies" \
--no-daemon --stacktrace --max-workers=2 \
"-Dorg.gradle.java.installations.paths=$JAVA_HOME,$JAVA_HOME_8_X64,$JAVA_HOME_25_X64" \
Expand All @@ -57,15 +57,15 @@ jobs:
- name: Upload audited release candidate
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: ModernMetals-1.13.2-${{ github.sha }}
name: ModernMetals-1.14.4-${{ github.sha }}
if-no-files-found: error
retention-days: 30
path: build/release-bundle/
- name: Retain failure diagnostics
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: ModernMetals-1.13.2-diagnostics-${{ github.sha }}
name: ModernMetals-1.14.4-diagnostics-${{ github.sha }}
if-no-files-found: ignore
retention-days: 14
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: CodeQL
on:
push:
branches:
- master-1.13.2
- master-1.14.4
- 'feature/**'
pull_request:
branches:
- master-1.13.2
- master-1.14.4
schedule:
- cron: '47 7 * * 4'

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
set -euo pipefail
mirror="$RUNNER_TEMP/legacy-dependency-mirror"
bash gradle/stage-orespawn-release.sh "$mirror"
bash gradle/stage-release-dependencies.sh "$mirror"
echo "repository=$mirror" >> "$GITHUB_OUTPUT"

- name: Compile production code
Expand Down
45 changes: 28 additions & 17 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Release Modern Metals 1.13.2
name: Release Modern Metals 1.14.4
run-name: Modern Metals ${{ inputs.release_version }} (${{ inputs.confirm_live_publication && 'publish' || 'verify' }})

on:
workflow_dispatch:
inputs:
release_version:
description: Four-part version for Minecraft 1.13.2
description: Four-part version for Minecraft 1.14.4
required: true
type: string
release_commit:
description: Full SHA of the checked MMD master-1.13.2 commit
description: Full SHA of the checked MMD master-1.14.4 commit
required: true
type: string
tested_jar_sha256:
Expand All @@ -33,13 +33,13 @@ permissions:
contents: read

concurrency:
group: modernmetals-release-113
group: modernmetals-release-114
cancel-in-progress: false

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/ModernMetals' && github.ref == 'refs/heads/master-1.13.2'
if: github.repository == 'MinecraftModDevelopmentMods/ModernMetals' && github.ref == 'refs/heads/master-1.14.4'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand All @@ -61,21 +61,21 @@ jobs:
TESTED_SHA: ${{ inputs.tested_jar_sha256 }}
run: |
set -euo pipefail
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.113021$ ]]
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.114041$ ]]
[[ "$RELEASE_SHA" =~ ^[[:xdigit:]]{40}$ ]]
[[ "$TESTED_SHA" =~ ^[[:xdigit:]]{64}$ ]]
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.13.2" --jq .commit.sha)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.14.4" --jq .commit.sha)" = "$RELEASE_SHA"
grep -Fxq "mod_version=$RELEASE_VERSION" gradle.properties
grep -Fxq 'minecraft_version=1.13.2' gradle.properties
grep -Fxq 'minecraft_version=1.14.4' gradle.properties
ci_run="$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \
-f branch=master-1.13.2 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
-f branch=master-1.14.4 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
--jq '.workflow_runs[0].id // empty')"
test -n "$ci_run"
echo "ci_run=$ci_run" >> "$GITHUB_OUTPUT"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ModernMetals-1.13.2-${{ inputs.release_commit }}
name: ModernMetals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ steps.candidate.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand Down Expand Up @@ -152,12 +152,12 @@ jobs:
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ModernMetals-1.13.2-${{ inputs.release_commit }}
name: ModernMetals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
- name: Stage checksum-verified published dependencies
run: bash gradle/stage-orespawn-release.sh .gradle/release-dependencies
run: bash gradle/stage-release-dependencies.sh .gradle/release-dependencies
- name: Publish the sealed Maven jars
env:
MAVEN_UPLOAD_URL: ${{ secrets.MAVEN_UPLOAD_URL }}
Expand All @@ -179,24 +179,25 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ModernMetals-1.13.2-${{ inputs.release_commit }}
name: ModernMetals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
- name: Verify the sealed jars
working-directory: ${{ runner.temp }}/release-input
run: sha256sum --check --strict SHA256SUMS
- name: Publish Modern Metals
id: curseforge
uses: Kira-NT/mc-publish@52307b03863581dec6b652b83e597aec02ebb075 # v3.3.1
with:
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-id: '244357'
name: Modern Metals ${{ inputs.release_version }} for Minecraft 1.13.2 (Forge)
name: Modern Metals ${{ inputs.release_version }} for Minecraft 1.14.4 (Forge)
version: ${{ inputs.release_version }}
version-type: ${{ inputs.curseforge_release_level }}
changelog-file: ${{ runner.temp }}/release-input/CHANGELOG.txt
loaders: forge
game-versions: '1.13.2'
game-versions: '1.14.4'
game-version-filter: none
environment: client | server
java: Java 8
Expand All @@ -209,6 +210,16 @@ jobs:
${{ runner.temp }}/release-input/ModernMetals-${{ inputs.release_version }}-sources.jar
${{ runner.temp }}/release-input/ModernMetals-${{ inputs.release_version }}-javadoc.jar

- name: Record the accepted CurseForge files
env:
CURSEFORGE_URL: ${{ steps.curseforge.outputs.curseforge-url }}
CURSEFORGE_FILES: ${{ steps.curseforge.outputs.curseforge-files }}
run: |
python3 - <<'PY'
import json, os
print(json.dumps({'url': os.environ['CURSEFORGE_URL'], 'files': os.environ['CURSEFORGE_FILES']}))
PY

publish_github:
name: Publish GitHub Release
needs: [qualify, publish_curseforge]
Expand All @@ -221,7 +232,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ModernMetals-1.13.2-${{ inputs.release_commit }}
name: ModernMetals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -234,5 +245,5 @@ jobs:
set -euo pipefail
sha256sum --check --strict SHA256SUMS
gh release create "$RELEASE_VERSION" --repo "$GITHUB_REPOSITORY" --verify-tag \
--title "Modern Metals $RELEASE_VERSION for Minecraft 1.13.2 (Forge)" \
--title "Modern Metals $RELEASE_VERSION for Minecraft 1.14.4 (Forge)" \
--notes-file CHANGELOG.txt "ModernMetals-$RELEASE_VERSION"{,-sources,-javadoc}.jar SHA256SUMS
6 changes: 3 additions & 3 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Validate Modern Metals 1.13.2 tag
name: Validate Modern Metals 1.14.4 tag
on:
push:
tags: ['*.*.*.113021']
tags: ['*.*.*.114041']
permissions:
contents: read
actions: read
Expand All @@ -16,5 +16,5 @@ jobs:
run: |
set -euo pipefail
test "$GITHUB_REF_NAME" = "$(sed -n 's/^mod_version=//p' gradle.properties)"
grep -Fxq 'minecraft_version=1.13.2' gradle.properties
grep -Fxq 'minecraft_version=1.14.4' gradle.properties
echo 'Tag validated. Publication uses deploy-release.yml with explicit confirmation.' >> "$GITHUB_STEP_SUMMARY"
4 changes: 2 additions & 2 deletions .github/workflows/validate-gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Validate Gradle Wrapper
on:
push:
branches:
- master-1.13.2
- master-1.14.4
- 'feature/**'
pull_request:
branches:
- master-1.13.2
- master-1.14.4

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ run
/forge-*-changelog.txt

secret.json
/local-basemetals.json
/local-sibling-mods.json
# Local context and generated verification
/AGENTS.md
/agent-notes/
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
3.0.0.114041 for Minecraft 1.14.4

- Fixed overlapping bars for every material, including titanium.
- Added a hash-pinned local Base Metals option for combined Eclipse testing.
- Added all eight Eclipse test combinations with Base Metals, Base Gems and Base Minerals, each with its own saves and config.
- Check the exact sibling jars in each profile so a Gradle refresh cannot quietly mix local builds or load an unwanted companion.


- Ported Modern Metals to Forge 28 and pinned the published OreSpawn 4.1.7.114041 release.
- Kept all 21 materials, the reviewed mining levels, alloy formulas and recipe discovery from 1.13.2.
- Added native block loot and blast-furnace processing, including small powders and small blends.
- Rods now craft in fours, gears in fours and plates in threes. Recycling follows the actual material cost.
- Moved molten metal to Forge's fluid attributes and kept contact damage, animated textures and coloured buckets.
- Updated smith trades for the new villager professions.
- Kept both config entry points, Fantasy Level inheritance and the Base Metals crushing handoff.
- Kept legacy world conversion and saved registry IDs. Always test upgrades on a copy.

3.0.0.113021 for 1.13.2

- Use Base Metals 3.0.3 or later when installed together, with its shared processing and mining fixes.
Expand Down
Loading
Loading