From 208aa6c1f5349f2b967aa4c9b8752c37f7c7f258 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Fri, 18 Jul 2025 13:24:08 +0200 Subject: [PATCH 1/3] Use new asset-caching action --- .github/workflows/assets-cache.yml | 19 +++++++++++++++++++ .github/workflows/build-prs.yml | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/assets-cache.yml diff --git a/.github/workflows/assets-cache.yml b/.github/workflows/assets-cache.yml new file mode 100644 index 00000000..2fa8fec6 --- /dev/null +++ b/.github/workflows/assets-cache.yml @@ -0,0 +1,19 @@ +--- + +name: Minecraft Assets Cache + +on: + schedule: + - cron: "34 3 * * *" # Update daily + workflow_dispatch: + +jobs: + update-cache: + runs-on: ubuntu-latest + name: Update Assets Cache + steps: + - uses: neoforged/actions-modding/minecraft-assets-cache/create@v1 + with: + minecraft-versions: | + 1.21.1 + 1.21.8 diff --git a/.github/workflows/build-prs.yml b/.github/workflows/build-prs.yml index 4915e952..138a4107 100644 --- a/.github/workflows/build-prs.yml +++ b/.github/workflows/build-prs.yml @@ -43,6 +43,9 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + - name: Setup Minecraft Assets Cache + uses: neoforged/actions-modding/minecraft-assets-cache/use@v1 + - name: Run build run: ./gradlew build neoForgeIdeSync publish working-directory: ./${{ matrix.project }} From 85a9059bff017d213b4449866b9ae8ba68d38a8f Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Sat, 19 Jul 2025 13:33:22 +0200 Subject: [PATCH 2/3] Set MC versions --- .github/workflows/assets-cache.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/assets-cache.yml b/.github/workflows/assets-cache.yml index 2fa8fec6..835b5d25 100644 --- a/.github/workflows/assets-cache.yml +++ b/.github/workflows/assets-cache.yml @@ -14,6 +14,7 @@ jobs: steps: - uses: neoforged/actions-modding/minecraft-assets-cache/create@v1 with: + # 1.20.1 for legacytest, 1.21 for normal test minecraft-versions: | - 1.21.1 - 1.21.8 + 1.20.1 + 1.21 From 49fc90433139f2220f11ea84cf0a84be74c69eec Mon Sep 17 00:00:00 2001 From: Bruno Ploumhans <13494793+Technici4n@users.noreply.github.com> Date: Sat, 19 Jul 2025 14:03:27 +0200 Subject: [PATCH 3/3] Update assets-cache.yml --- .github/workflows/assets-cache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/assets-cache.yml b/.github/workflows/assets-cache.yml index 835b5d25..b6bb0374 100644 --- a/.github/workflows/assets-cache.yml +++ b/.github/workflows/assets-cache.yml @@ -4,7 +4,7 @@ name: Minecraft Assets Cache on: schedule: - - cron: "34 3 * * *" # Update daily + - cron: "0 0 * * *" # Update daily workflow_dispatch: jobs: