Add full support for MC 26.1.2 #75
Workflow file for this run
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: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| compute-cache-key: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| cache-key: ${{ steps.compute.outputs.cache-key }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - id: compute | |
| run: | | |
| HASH=$(sha256sum .github/nms-groups.yml | cut -c1-16) | |
| echo "cache-key=nms-cache-${HASH}" >> "$GITHUB_OUTPUT" | |
| nms-cache: | |
| needs: compute-cache-key | |
| uses: ./.github/workflows/build-nms.yml | |
| with: | |
| groups-file: .github/nms-groups.yml | |
| cache-key: ${{ needs.compute-cache-key.outputs.cache-key }} | |
| build: | |
| needs: [compute-cache-key, nms-cache] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| cache: maven | |
| - name: Restore NMS Maven cache | |
| uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| fail-on-cache-miss: true | |
| key: ${{ needs.compute-cache-key.outputs.cache-key }} | |
| restore-keys: | | |
| nms-cache- | |
| path: | | |
| ~/.m2/repository/org/spigotmc/spigot | |
| ~/.m2/repository/org/spigotmc/spigot-parent | |
| ~/.m2/repository/net/md-5 | |
| - name: Build and Test | |
| run: | | |
| mvn --batch-mode --show-version --no-transfer-progress \ | |
| clean \ | |
| test \ | |
| verify | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| path: core/target/BigDoors.jar | |
| archive: false | |
| if-no-files-found: error | |