Repository navigation
Port baseSteam to Forge 26.2 #79
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: CodeQL | |
| on: | |
| push: | |
| branches: [master-26.2, 'feature/**'] | |
| pull_request: | |
| branches: [master-26.2] | |
| permissions: | |
| contents: read | |
| actions: read | |
| security-events: write | |
| concurrency: | |
| group: basesteam-26.2-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| name: Analyze Java | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 75 | |
| steps: | |
| - name: Check out baseSteam | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Use canonical LF dependency inputs | |
| run: git config --global core.autocrlf false | |
| - name: Verify merged and public dependency pins | |
| id: public-pins | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: bash .github/verify-published-pins.sh | |
| - name: Check out pinned OreSpawn tool source | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| repository: MinecraftModDevelopmentMods/OreSpawn | |
| ref: ${{ steps.public-pins.outputs.orespawn_ref }} | |
| path: .ci-dependencies/OreSpawn | |
| - name: Check out released basePower source | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| repository: MinecraftModDevelopmentMods/basePower | |
| ref: ${{ steps.public-pins.outputs.power_ref }} | |
| path: .ci-dependencies/basePower | |
| - name: Install Java 25 for Gradle, compiler, Mavenizer and Slime | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5 | |
| with: | |
| distribution: temurin | |
| java-version: '25.0.3+9.0.LTS' | |
| - name: Use pinned build toolchains | |
| run: >- | |
| echo "MMD_GRADLE_TOOLCHAINS=-Porg.gradle.java.installations.paths=$JAVA_HOME | |
| -Porg.gradle.java.installations.auto-detect=false | |
| -Porg.gradle.java.installations.auto-download=false" >> "$GITHUB_ENV" | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6 | |
| - name: Verify the Forge 65 build inputs | |
| shell: bash | |
| env: | |
| ORESPAWN_REF: ${{ steps.public-pins.outputs.orespawn_ref }} | |
| POWER_REF: ${{ steps.public-pins.outputs.power_ref }} | |
| run: | | |
| set -euo pipefail | |
| orespawn="$GITHUB_WORKSPACE/.ci-dependencies/OreSpawn" | |
| power="$GITHUB_WORKSPACE/.ci-dependencies/basePower" | |
| test "$(git -C "$orespawn" rev-parse HEAD)" = "$ORESPAWN_REF" | |
| test "$(git -C "$power" rev-parse HEAD)" = "$POWER_REF" | |
| mavenizer="$orespawn/ci-fixtures/tools/minecraft-mavenizer-0.5.21-orespawn-compat.jar" | |
| printf '%s %s\n' '5ABAB52A3F1BE115381C3CE80D5FD38DBE6C9F4C0B9ECF70A957700EC90FB88B' "$mavenizer" | sha256sum -c - | |
| echo "MAVENIZER=$mavenizer" >> "$GITHUB_ENV" | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4 | |
| with: | |
| languages: java-kotlin | |
| build-mode: manual | |
| - name: Compile production code | |
| shell: bash | |
| run: | | |
| ./gradlew $MMD_GRADLE_TOOLCHAINS classes verifyReleaseDependencies --rerun-tasks --no-build-cache --no-daemon --stacktrace \ | |
| "-Pforge64MavenizerJar=$MAVENIZER" "-PpowerAdvantageDeobfJar=$POWER_PLAYER" \ | |
| "-PbaseMetalsDeobfJar=$METALS_PLAYER" "-PoreSpawnDeobfJar=$ORESPAWN_PLAYER" | |
| - name: Analyze | |
| uses: github/codeql-action/analyze@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4 |