Skip to content

Commit 35b9656

Browse files
authored
[no ci] Shared cache for Minecraft Assets, for MDG's own CI (#277)
1 parent acf04fd commit 35b9656

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/assets-cache.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
3+
name: Minecraft Assets Cache
4+
5+
on:
6+
schedule:
7+
- cron: "0 0 * * *" # Update daily
8+
workflow_dispatch:
9+
10+
jobs:
11+
update-cache:
12+
runs-on: ubuntu-latest
13+
name: Update Assets Cache
14+
steps:
15+
- uses: neoforged/actions-modding/minecraft-assets-cache/create@v1
16+
with:
17+
# 1.20.1 for legacytest, 1.21 for normal test
18+
minecraft-versions: |
19+
1.20.1
20+
1.21

.github/workflows/build-prs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
- name: Setup Gradle
4444
uses: gradle/actions/setup-gradle@v3
4545

46+
- name: Setup Minecraft Assets Cache
47+
uses: neoforged/actions-modding/minecraft-assets-cache/use@v1
48+
4649
- name: Run build
4750
run: ./gradlew build neoForgeIdeSync publish
4851
working-directory: ./${{ matrix.project }}

0 commit comments

Comments
 (0)