work on removing more redundant data #363
This file contains 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: Generate Diff | |
on: [push] | |
jobs: | |
diff: | |
strategy: | |
matrix: | |
java: [21] | |
runs-on: ubuntu-latest | |
container: | |
image: eclipse-temurin:${{ matrix.java }} | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- uses: gradle/wrapper-validation-action@v2 | |
- run: ./gradlew decompileVineflower decompileTargetVineflower --stacktrace | |
if: ${{ matrix.java == 21 }} | |
- name: Check Target Decompiled | |
id: can-create-diff | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "namedTargetSrc/net/minecraft/client/main/Main.java" | |
- name: Create diff | |
if: ${{ steps.can-create-diff.outputs.files_exists == 'true' }} | |
run: diff -bur namedTargetSrc/ namedSrc/ > target.diff | |
continue-on-error: true | |
- name: Create diff comment | |
uses: ./.github/actions/diff-uploader/ | |
if: ${{ matrix.java == 21 }} | |
id: diff-uploader | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
target-src-exists: ${{ steps.can-create-diff.outputs.files_exists }} | |
- name: Upload diff | |
if: hashFiles('target.diff') != '' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Diff | |
path: target.diff |