Merge tag '1.6.0' into develop #55
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
# This workflow will build Akropolis with Gradle. | |
# It will be compiled against Java 21. | |
name: Build | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
# Builds Akropolis in recommended JDK version. | |
build-plugin: | |
runs-on: ubuntu-latest | |
# For Minecraft 1.21, Java 21+ is needed/recommended. | |
strategy: | |
matrix: | |
java_version: [ 21 ] | |
steps: | |
- name: Checkout GitHub repository | |
uses: actions/checkout@v4 | |
- name: Gradle Wrapper Validation | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Cleanup old JARs | |
run: rm -f build/libs/*.jar | |
- name: Set up JDK ${{ matrix.java_version }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java_version }} | |
distribution: temurin | |
cache: gradle | |
- name: Build plugin | |
run: ./gradlew shadowJar | |
- name: Cleanup Gradle Cache | |
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | |
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Akropolis Artifact | |
path: build/libs/*.jar |