pass toString() to logger call to avoid holding ConnectedPlayer object #13
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: Java CI with Gradle | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
# Only run on PRs if the source branch is on a different repo. We do not need to run everything twice. (From ViaVersion) | |
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4.2.2 | |
- name: Cache Minecraft reports | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
plugin/build/minecraft/ | |
plugin/build/generated/minecraft/mappings/ | |
key: minecraft-${{ hashFiles('gradle.properties') }} # Cache key is based on gradle.properties because of gameVersions property | |
- name: Setup Java | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: temurin | |
java-version: 21 | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3.3.2 | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4.4.3 | |
with: | |
name: LimboAPI | |
path: "build/libs/limboapi-*.jar" |