fix: porting lib renamed extra_entity_spawn_data #66
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: check mappings | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
checkMappings: | |
strategy: | |
matrix: | |
# Use these Java versions | |
java: [ | |
21, # Current Java LTS & minimum supported by Minecraft | |
] | |
# and run on both Linux and Windows | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: setup jdk ${{ matrix.java }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
java-package: jdk | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
./.gradle/loom-cache | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: "cache mappingsGen" | |
uses: actions/cache@v4 | |
with: | |
path: | | |
./run-mappingsGen | |
key: ${{ runner.os }}-mappingsGen-${{ hashFiles('./genMappings.sh') }} | |
restore-keys: | | |
${{ runner.os }}-mappingsGen- | |
- name: generate mappings | |
env: | |
MAPPINGS_GEN_FRESH: true | |
run: ./genMappings.sh | |
- name: fail if mappings changed | |
run: | | |
git update-index --refresh | |
if ! git diff-index --quiet HEAD --; then | |
echo "Mappings changed, please commit them" | |
exit 1 | |
fi |