Files
Not-Enough-Crashes/.github/workflows/build-1.12.2.yml
Claude ff04a40c1d Add 1.12.2 Forge backport with CI build
Reimplements the core Not Enough Crashes features for Minecraft 1.12.2 on
the legacy Forge toolchain (ForgeGradle 2.3, MCP mappings, SpongePowered
Mixin), since Architectury/Fabric/Yarn do not support 1.12.2.

Features:
- Catches client game-loop crashes and shows a recoverable crash screen
  instead of closing the game (return to title / quit / open report).
- Blames the mod most likely responsible by mapping stack-trace classes
  back to their owning mod.
- Adds a Suspected Mods line to every crash report (client and server).

Mixin is shaded and bootstrapped by a small Forge core plugin. A GitHub
Actions workflow (.github/workflows/build-1.12.2.yml) builds it on JDK 8.
2026-06-03 17:18:32 +00:00

46 lines
1022 B
YAML

name: Build 1.12.2 (Forge)
on:
push:
branches:
- "**"
paths:
- "1.12.2/**"
- ".github/workflows/build-1.12.2.yml"
pull_request:
paths:
- "1.12.2/**"
- ".github/workflows/build-1.12.2.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "8"
- name: Grant execute permission for gradlew
working-directory: 1.12.2
run: chmod +x gradlew
- name: Build with Gradle (wrapper pins Gradle 4.10.3 for ForgeGradle 2.3)
working-directory: 1.12.2
run: ./gradlew build --no-daemon --stacktrace
- name: Upload mod jar
uses: actions/upload-artifact@v4
with:
name: notenoughcrashes-1.12.2
path: 1.12.2/build/libs/*.jar
if-no-files-found: error