环境:GitHub的Action(ubuntu-latest)
以下是报错信息
* What went wrong:
Execution failed for task ':applyBinaryPatches'.
> There is a binary discrepency between the expected input class net.minecraft.client.renderer.entity.layers.LayerHeldItem (ccc) and the actual class. Checksum on disk is 5f7c661a, in patch da0f6687. Things are probably about to go very wrong. Did you put something into the jar file?
以下是Action脚本
name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Permission allowing
run: chmod +x ./gradlew
- name: Set up JDK 1.8
uses: actions/[email protected]
with:
java-version: 1.8
- name: Cache gradle dependencies
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
- name: Upload Jar
uses: actions/upload-artifact@v1
with:
name: Minecraft-Mod-Better-Cat-newest
path: build/libs
在执行上一个任务时,仍然有报错,但GitHub却通过了这个流程