Refactor factory generics for consistency across modules #429
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: Build | |
| on: [ pull_request, push ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
| - name: Cache Gradle Build Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| .gradle | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Cache Hytale Server | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| hytale/libs/HytaleServer.jar | |
| hytale/build/download/hytale-downloader-linux-amd64 | |
| key: ${{ runner.os }}-hytale-download | |
| restore-keys: | | |
| ${{ runner.os }}-hytale- | |
| - name: Download Hytale Server | |
| env: | |
| HYTALE_DOWNLOADER_CREDENTIALS: ${{ secrets.HYTALE_DOWNLOADER_CREDENTIALS }} | |
| run: ./gradlew :hytale:download-server | |
| - name: Build with Gradle | |
| run: ./gradlew shadowJar | |
| - name: Test with Gradle | |
| run: ./gradlew test |