Repository navigation
Share legacy-world migration hooks on Forge 26.3 #123
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Base Metals 26.3 CI | |
| on: | |
| push: | |
| branches: | |
| - master-26.3 | |
| - 'feature/**' | |
| pull_request: | |
| branches: | |
| - master-26.3 | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: basemetals-26.3-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build, test, and audit | |
| runs-on: ubuntu-26.04 | |
| timeout-minutes: 90 | |
| env: | |
| LIBGL_ALWAYS_SOFTWARE: '1' | |
| GALLIUM_DRIVER: llvmpipe | |
| SDL_VIDEO_DRIVER: x11 | |
| SDL_VIDEO_FORCE_EGL: '1' | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Prepare Mesa software rendering | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --yes --no-install-recommends libgl1-mesa-dri libglx-mesa0 mesa-utils | |
| xvfb-run -a -s '-screen 0 1280x1024x24 +extension GLX +render -noreset' glxinfo -B | |
| - name: Check the virtual display supports Minecraft's OpenGL context | |
| run: | | |
| native="$RUNNER_TEMP/basemetals-sdl-linux.jar" | |
| curl --fail --location --retry 3 --output "$native" \ | |
| https://libraries.minecraft.net/org/lwjgl/lwjgl-sdl/3.4.3/lwjgl-sdl-3.4.3-natives-linux.jar | |
| echo "E1880683A4AF33299E9A1B8D7EC1799BED8FB709064EA08DCC2A15CD1101C0B3 $native" | sha256sum --check --strict | |
| timeout 30s xvfb-run -a -s '-screen 0 1280x1024x24 +extension GLX +render -noreset' \ | |
| python3 tools/validation/check_sdl_graphics.py "$native" | |
| - name: Install pinned Java 25 runtime and toolchain | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5 | |
| with: | |
| distribution: temurin | |
| java-version: '25.0.3+9.0.LTS' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6 | |
| - name: Stage exact OreSpawn release dependency | |
| id: orespawn | |
| run: | | |
| mirror="$RUNNER_TEMP/orespawn-mirror" | |
| bash gradle/stage-orespawn-release.sh "$mirror" | |
| echo "repository=$mirror" >> "$GITHUB_OUTPUT" | |
| - name: Test saved-item component comparisons | |
| run: | | |
| python3 -m venv "$RUNNER_TEMP/nbt-tests" | |
| "$RUNNER_TEMP/nbt-tests/bin/pip" install nbtlib==2.0.4 numpy==2.4.6 | |
| "$RUNNER_TEMP/nbt-tests/bin/python" -m unittest discover -s tools/validation -p 'test_*.py' | |
| - name: Test upgrade log boundaries | |
| run: node --test tools/validation/test_painting_registry.js tools/validation/test_runtime_log.js tools/validation/test_vanilla_registry.js | |
| - name: Build, test, and audit first candidate | |
| run: | | |
| chmod +x ./gradlew | |
| ./gradlew clean check build javadoc verifyReleaseArtifacts writeReleaseChecksums \ | |
| -PorespawnVerificationRepository="${{ steps.orespawn.outputs.repository }}" \ | |
| --no-daemon --stacktrace | |
| first="$RUNNER_TEMP/basemetals-first" | |
| mkdir -p "$first" | |
| cp build/libs/BaseMetals-3.1.2.2603001.jar "$first/" | |
| cp build/libs/BaseMetals-3.1.2.2603001-sources.jar "$first/" | |
| cp build/libs/BaseMetals-3.1.2.2603001-javadoc.jar "$first/" | |
| cp build/release/SHA256SUMS "$first/" | |
| - name: Rebuild and prove byte-identical archives | |
| run: | | |
| ./gradlew clean assemble verifyReleaseArtifacts writeReleaseChecksums \ | |
| -PorespawnVerificationRepository="${{ steps.orespawn.outputs.repository }}" \ | |
| --no-daemon --stacktrace | |
| cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.1.2.2603001.jar" build/libs/BaseMetals-3.1.2.2603001.jar | |
| cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.1.2.2603001-sources.jar" build/libs/BaseMetals-3.1.2.2603001-sources.jar | |
| cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.1.2.2603001-javadoc.jar" build/libs/BaseMetals-3.1.2.2603001-javadoc.jar | |
| cmp "$RUNNER_TEMP/basemetals-first/SHA256SUMS" build/release/SHA256SUMS | |
| - name: Run all required GameTests | |
| run: >- | |
| timeout 15m ./gradlew runGameTestServer | |
| -PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }} | |
| --no-daemon --stacktrace | |
| - name: Install official Forge packaged runtimes | |
| id: forge-runtimes | |
| run: | | |
| server_runtime="$RUNNER_TEMP/forge-26.3-66.0.0-server" | |
| client_runtime="$RUNNER_TEMP/forge-26.3-66.0.0-client" | |
| installer="$RUNNER_TEMP/forge-26.3-66.0.0-installer.jar" | |
| mkdir -p "$server_runtime" "$client_runtime" | |
| curl --fail --location --retry 3 \ | |
| --output "$installer" \ | |
| https://maven.minecraftforge.net/net/minecraftforge/forge/26.3-66.0.0/forge-26.3-66.0.0-installer.jar | |
| echo "C6173EEA56AED0B947722F314542196E28A35285844961D517C7FB571492BBE3 $installer" | sha256sum --check --strict | |
| ( | |
| cd "$server_runtime" | |
| java -jar "$installer" --installServer | |
| ) | |
| python3 gradle/prepare-forge-client-runtime.py \ | |
| --installer "$installer" \ | |
| --runtime "$client_runtime" \ | |
| --java "$JAVA_HOME/bin/java" | |
| echo "server_runtime=$server_runtime" >> "$GITHUB_OUTPUT" | |
| echo "client_runtime=$client_runtime" >> "$GITHUB_OUTPUT" | |
| - name: Run exact packaged dedicated-server smoke | |
| run: >- | |
| timeout 15m ./gradlew packagedServerStartupSmoke | |
| -PpackagedForgeServerRuntime=${{ steps.forge-runtimes.outputs.server_runtime }} | |
| -PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }} | |
| --no-daemon --stacktrace | |
| - name: Run exact packaged integrated-world client smoke | |
| run: >- | |
| timeout --kill-after=30s 15m xvfb-run -a | |
| -s '-screen 0 1280x1024x24 +extension GLX +render -noreset' | |
| ./gradlew packagedClientStartupSmoke | |
| -PvirtualDisplaySmoke=true | |
| -PpackagedForgeClientRuntime=${{ steps.forge-runtimes.outputs.client_runtime }} | |
| -PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }} | |
| --no-daemon --stacktrace | |
| - name: Run bounded development integrated-world client smoke | |
| run: >- | |
| timeout --kill-after=30s 15m xvfb-run -a | |
| -s '-screen 0 1280x1024x24 +extension GLX +render -noreset' | |
| ./gradlew runClient | |
| -PvirtualDisplaySmoke=true | |
| -PintegratedWorldSmoke=true | |
| -PintegratedWorldSmokeName=basemetals-ci-${{ github.run_id }} | |
| -PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }} | |
| --no-daemon --stacktrace | |
| - name: Generate and audit Eclipse production launches | |
| run: >- | |
| ./gradlew genEclipseRuns eclipse isolateEclipseProductionRuns verifyEclipseProductionClasspath | |
| -PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }} | |
| --no-daemon --stacktrace | |
| - name: Upload audited release candidate | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: BaseMetals-26.3-${{ github.sha }} | |
| if-no-files-found: error | |
| retention-days: 30 | |
| path: | | |
| build/libs/BaseMetals-3.1.2.2603001.jar | |
| build/libs/BaseMetals-3.1.2.2603001-sources.jar | |
| build/libs/BaseMetals-3.1.2.2603001-javadoc.jar | |
| build/release/SHA256SUMS | |
| CHANGELOG.txt | |
| - name: Upload bounded diagnostics on failure | |
| if: failure() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: BaseMetals-26.3-diagnostics-${{ github.sha }} | |
| if-no-files-found: ignore | |
| retention-days: 14 | |
| path: | | |
| build/test-results/** | |
| build/reports/** | |
| run/logs/** | |
| run/crash-reports/** | |
| run-gametest/logs/** | |
| run-gametest/crash-reports/** | |
| run-integrated-smoke/logs/** | |
| run-integrated-smoke/crash-reports/** | |
| run-data/logs/** | |
| build/problems/** | |
| build/packaged-server-run/logs/** | |
| build/packaged-server-run/crash-reports/** | |
| build/packaged-client-run/logs/** | |
| build/packaged-client-run/crash-reports/** |