From 3347beb7f5274a72ca3d89d3e88e1187479e3a2b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 27 Aug 2026 01:57:02 +0000 Subject: [PATCH 1/2] Add GitHub Actions workflow to build the mod on every commit Builds with JDK 21 (Gradle 9.7 + Loom/Ploceus need it; javac still targets 17) on every push, pull request, and manual dispatch, and uploads the remapped 1.8.9 jars as run artifacts. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_016mhpxA5gsuRFqwyxuwQRmj --- .github/workflows/build.yml | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..b9c399cd3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,59 @@ +name: Build + +on: + push: + branches: + - '**' + pull_request: + workflow_dispatch: + +concurrency: + group: build-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + build: + name: Build mod + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '21' + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build + run: ./gradlew build --stacktrace + + - name: Read mod version + id: version + run: echo "version=$(grep -E '^version=' gradle.properties | cut -d= -f2)" >> "$GITHUB_OUTPUT" + + - name: Upload jars + uses: actions/upload-artifact@v4 + with: + name: DolphinClient-${{ steps.version.outputs.version }}-${{ github.sha }} + path: | + versions/*/build/libs/*.jar + !versions/*/build/libs/*-dev.jar + if-no-files-found: error + + - name: Upload test reports on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-reports-${{ github.sha }} + path: | + **/build/reports/tests/ + **/build/test-results/ + if-no-files-found: ignore From 378647619df8532fd296c8645f19cfc7f1406db9 Mon Sep 17 00:00:00 2001 From: Dominic Seung Date: Wed, 26 Aug 2026 19:05:27 -0700 Subject: [PATCH 2/2] Rename build job and clean up workflow file Updated build job name and removed unnecessary configurations. --- .github/workflows/build.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9c399cd3..a29519709 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,19 +4,10 @@ on: push: branches: - '**' - pull_request: - workflow_dispatch: - -concurrency: - group: build-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read jobs: build: - name: Build mod + name: Build DolphinClient runs-on: ubuntu-latest steps: