Compare commits

...

6 commits

Author SHA1 Message Date
845bb4d94a
one last change 2026-07-17 02:40:59 +02:00
c2b793e1b9
do not use java setup to cache gradlew 2026-07-17 02:40:59 +02:00
d9624c17ba
fix paperweight cache 2026-07-17 02:40:59 +02:00
6fcc5bdf64
do not depend on nightexpress repo 2026-07-17 02:40:58 +02:00
17ee9902b5
upgrade actions 2026-07-17 02:40:57 +02:00
41d56ec949
trying better cache 2026-07-17 02:40:53 +02:00
7 changed files with 26 additions and 37 deletions

View file

@ -27,42 +27,33 @@ jobs:
MODRINTH_PLATFORMS: '["spigot", "paper", "purpur", "folia"]' MODRINTH_PLATFORMS: '["spigot", "paper", "purpur", "folia"]'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Set up JDKs - name: Set up JDKs
uses: actions/setup-java@v4 uses: actions/setup-java@v5
with: with:
java-version: | java-version: |
21 21
distribution: 'temurin' distribution: 'temurin'
cache: gradle
- name: Cache Gradle root and wrapper
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-root-${{ runner.os }}-${{ hashFiles('build.gradle*') }}
restore-keys: gradle-root-${{ runner.os }}-
# Setup paperweight cache
- name: Cache paperweight
uses: actions/cache@v3
with:
path: |
./nms/*/.gradle/caches/paperweight
key: paperweight-submodules-${{ runner.os }}-${{ hashFiles('nms/*/build.gradle*') }}
restore-keys: |
paperweight-submodules-${{ runner.os }}-
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle - name: Setup Gradle
uses: gradle/actions/setup-gradle@v5 uses: gradle/actions/setup-gradle@v6
- name: Make gradlew executable - name: Make gradlew executable
run: chmod +x ./gradlew run: chmod +x ./gradlew
# Setup paperweight cache
- name: Cache paperweight
uses: actions/cache@v6
with:
path: |
./nms/*/.gradle/caches/paperweight
./.gradle/caches/paperweight
key: paperweight-submodules-${{ runner.os }}-${{ hashFiles('nms/*/build.gradle*') }}
restore-keys: |
paperweight-submodules-${{ runner.os }}-
- name: Get small commit hash - name: Get small commit hash
if: ${{ github.event_name != 'release' && success() }} if: ${{ github.event_name != 'release' && success() }}
run: echo "SMALL_COMMIT_HASH=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV run: echo "SMALL_COMMIT_HASH=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
@ -72,7 +63,7 @@ jobs:
# only submit dependency on push # only submit dependency on push
- name: Generate and submit dependency graph - name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4 uses: gradle/actions/dependency-submission@v6
if: ${{ github.event_name == 'push' && success() }} if: ${{ github.event_name == 'push' && success() }}
continue-on-error: true continue-on-error: true
@ -88,16 +79,16 @@ jobs:
# upload the named jars as artifact # upload the named jars as artifact
- name: Upload online JAR artifact - name: Upload online JAR artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: CustomAnvil.jar
path: build/libs/${{ env.ONLINE_JAR_NAME }} path: build/libs/${{ env.ONLINE_JAR_NAME }}
archive: false
- name: Upload offline JAR file - name: Upload offline JAR file
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: CustomAnvil-offline.jar
path: build/libs/${{ env.OFFLINE_JAR_NAME }} path: build/libs/${{ env.OFFLINE_JAR_NAME }}
archive: false
- name: Summarize tests results - name: Summarize tests results
uses: jeantessier/test-summary-action@v1 uses: jeantessier/test-summary-action@v1
@ -106,7 +97,7 @@ jobs:
# upload the jar to release # upload the jar to release
- name: Upload jar to release - name: Upload jar to release
if: ${{ github.event_name == 'release' && success() }} if: ${{ github.event_name == 'release' && success() }}
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v3
with: with:
files: | files: |
build/libs/${{ env.ONLINE_JAR_NAME }} build/libs/${{ env.ONLINE_JAR_NAME }}

View file

@ -34,9 +34,6 @@ repositories {
// EcoEnchants // EcoEnchants
maven(url = "https://repo.auxilor.io/repository/maven-public/") maven(url = "https://repo.auxilor.io/repository/maven-public/")
// ExcellentEnchants
maven(url = "https://repo.nightexpressdev.com/releases")
// ItemsAdder // ItemsAdder
maven(url = "https://maven.devs.beer/") maven(url = "https://maven.devs.beer/")
@ -82,11 +79,12 @@ dependencies {
// ExcellentEnchants // ExcellentEnchants
implementation(project(":impl:ExcellentEnchant5_4")) implementation(project(":impl:ExcellentEnchant5_4"))
compileOnly("su.nightexpress.excellentenchants:Core:5.1.0") { compileOnly(files("libs/ExcellentEnchants/ExcellentEnchants-4.3.3-striped.jar")) // For pre v5 excellent enchants
exclude("org.spigotmc") compileOnly(files("libs/ExcellentEnchants/ExcellentEnchants-4.1.0-striped.jar")) // For legacy excellent enchants
} // early v5 excellent enchants
compileOnly(files("libs/ExcellentEnchants-4.3.3-striped.jar")) // For pre v5 excellent enchants compileOnly(files("libs/ExcellentEnchants/Core-5.1.0.jar"))
compileOnly(files("libs/ExcellentEnchants-4.1.0-striped.jar")) // For legacy excellent enchants compileOnly(files("libs/ExcellentEnchants/API-5.1.0.jar"))
compileOnly(files("libs/ExcellentEnchants/main-2.7.9.jar"))
// Disenchantment // Disenchantment
compileOnly(files("libs/Disenchantment-6.1.5.jar")) compileOnly(files("libs/Disenchantment-6.1.5.jar"))

Binary file not shown.

Binary file not shown.

Binary file not shown.