Repository navigation
Bring basePower and old worlds to Minecraft 1.14.4 #26
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: basePower 1.14 CI | |
| on: | |
| push: | |
| branches: [master-1.14.4, 'feature/**'] | |
| pull_request: | |
| branches: [master-1.14.4] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: basepower-1.14-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build, test, and audit | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 | |
| steps: | |
| - name: Check out basePower | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Check out pinned OreSpawn | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| repository: MinecraftModDevelopmentMods/OreSpawn | |
| ref: 9c2488cba02d317e3f31e24441dcc58273d8d0e6 | |
| path: .ci-dependencies/OreSpawn | |
| - name: Use canonical LF dependency inputs | |
| # Use the same source bytes on hosted and local dependency builds. | |
| run: git config --global core.autocrlf false | |
| - name: Check out pinned Base Metals | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| repository: MinecraftModDevelopmentMods/BaseMetals | |
| ref: 713802f93f2d1f650e1593fa35c487ea43add4a5 | |
| path: .ci-dependencies/BaseMetals | |
| - name: Install Java 8 toolchain | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5 | |
| with: | |
| distribution: temurin | |
| java-version: '8.0.502+7' | |
| - name: Install Java 17 for Gradle | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5 | |
| with: | |
| distribution: microsoft | |
| java-version: '17' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6 | |
| - name: Build pinned development dependencies | |
| id: dependencies | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| orespawn="$GITHUB_WORKSPACE/.ci-dependencies/OreSpawn" | |
| basemetals="$GITHUB_WORKSPACE/.ci-dependencies/BaseMetals" | |
| chmod +x "$orespawn/gradlew" "$basemetals/gradlew" | |
| (cd "$orespawn" && ./gradlew jar --no-daemon --stacktrace) | |
| (cd "$basemetals" && ./gradlew jar --no-daemon --stacktrace) | |
| osjar="$orespawn/build/libs-dev/OreSpawn-4.1.1.114041-deobf.jar" | |
| bmjar="$basemetals/build/libs-dev/BaseMetals-3.0.1.114041-deobf.jar" | |
| test -f "$osjar" && test -f "$bmjar" | |
| echo "orespawn=$osjar" >> "$GITHUB_OUTPUT" | |
| echo "basemetals=$bmjar" >> "$GITHUB_OUTPUT" | |
| - name: Build and audit release artifacts | |
| run: >- | |
| ./gradlew clean check build javadoc verifyReleaseDependencies verifyReleaseArtifacts | |
| writeReleaseChecksums verifyEclipseProductionClasspath | |
| -PbaseMetalsDeobfJar=${{ steps.dependencies.outputs.basemetals }} | |
| -PoreSpawnDeobfJar=${{ steps.dependencies.outputs.orespawn }} | |
| --no-daemon --stacktrace | |
| - name: Upload audited release candidate | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: basePower-1.14.4-${{ github.sha }} | |
| if-no-files-found: error | |
| retention-days: 30 | |
| path: | | |
| build/libs/basePower-2.4.6.114041.jar | |
| build/libs/basePower-2.4.6.114041-sources.jar | |
| build/libs/basePower-2.4.6.114041-javadoc.jar | |
| build/libs-dev/basePower-2.4.6.114041-deobf.jar | |
| build/release/SHA256SUMS | |
| CHANGELOG.txt | |
| - name: Upload diagnostics on failure | |
| if: failure() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: basePower-1.14.4-diagnostics-${{ github.sha }} | |
| if-no-files-found: ignore | |
| retention-days: 14 | |
| path: | | |
| build/test-results/** | |
| build/reports/** | |
| build/*-run/logs/** | |
| build/problems/** |