fix gradle caching
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m57s

This commit is contained in:
Daniella / Tove 2024-06-12 17:46:37 +02:00
parent 4dad8ec4b9
commit d15c941548
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 6 additions and 3 deletions

View file

@ -27,7 +27,7 @@ jobs:
- name: Get ForgeGradle cache - name: Get ForgeGradle cache
continue-on-error: true continue-on-error: true
run: | run: |
cp ~/.gradle/caches/baseband/fg_cache Client/build/fg_cache mv ~/.gradle/caches/baseband/fg_cache Client/build/fg_cache
ln ../../Client/build/fg_cache Loader/build/fg_cache ln ../../Client/build/fg_cache Loader/build/fg_cache
- name: Build - name: Build
run: | run: |
@ -82,6 +82,7 @@ jobs:
- name: Put ForgeGradle cache - name: Put ForgeGradle cache
if: always() if: always()
run: | run: |
rm -rf ~/.gradle/caches/baseband/fg_cache
mkdir -p ~/.gradle/caches/baseband/ mkdir -p ~/.gradle/caches/baseband/
mv Client/build/fg_cache ~/.gradle/caches/baseband/ mv Client/build/fg_cache ~/.gradle/caches/baseband/

View file

@ -29,7 +29,8 @@ jobs:
- name: Get ForgeGradle cache - name: Get ForgeGradle cache
continue-on-error: true continue-on-error: true
run: | run: |
cp ~/.gradle/caches/baseband/fg_cache Client/build/fg_cache mkdir Client/build Loader/build
mv ~/.gradle/caches/baseband/fg_cache Client/build/
ln ../../Client/build/fg_cache Loader/build/fg_cache ln ../../Client/build/fg_cache Loader/build/fg_cache
- name: Build - name: Build
run: | run: |
@ -58,5 +59,6 @@ jobs:
- name: Put ForgeGradle cache - name: Put ForgeGradle cache
if: always() if: always()
run: | run: |
rm -rf ~/.gradle/caches/baseband/fg_cache
mkdir -p ~/.gradle/caches/baseband/ mkdir -p ~/.gradle/caches/baseband/
mv Client/build/fg_cache ~/.gradle/caches/baseband/" mv Client/build/fg_cache ~/.gradle/caches/baseband/