fix fg_cache
Some checks failed
/ Build BaseBand DSM & Broadway (push) Failing after 1m9s

This commit is contained in:
Daniella / Tove 2024-06-12 18:15:44 +02:00
parent 8348ea86a9
commit ce89c7234b
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 14 additions and 23 deletions

View file

@ -24,11 +24,13 @@ jobs:
run: bash scripts/webhook.sh "**(Client)** Build Action Started"
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Get ForgeGradle cache
continue-on-error: true
run: |
mv ~/.gradle/caches/baseband/fg_cache Client/build/fg_cache
ln ../../Client/build/fg_cache Loader/build/fg_cache
- name: Initialize ForgeGradle cache
id: cache-fg
uses: actions/cache@v4
with:
path: |
Client/build/fg_cache
Loader/build/fg_cache
- name: Build
run: |
bash scripts/gen_hash.sh
@ -79,10 +81,4 @@ jobs:
- name: Notify Action Completion
if: always()
run: bash scripts/webhook.sh "**(Client)** Build Action Completed <@&1250456258629341284>"
- name: Put ForgeGradle cache
if: always()
run: |
rm -rf ~/.gradle/caches/baseband/fg_cache
mkdir -p ~/.gradle/caches/baseband/
mv Client/build/fg_cache ~/.gradle/caches/baseband/

View file

@ -26,12 +26,13 @@ jobs:
run: bash scripts/webhook.sh "**(Loader)** Build Action Started at"
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Get ForgeGradle cache
continue-on-error: true
run: |
mkdir Client/build Loader/build
mv ~/.gradle/caches/baseband/fg_cache Client/build/
ln ../../Client/build/fg_cache Loader/build/fg_cache
- name: Initialize ForgeGradle cache
id: cache-fg
uses: actions/cache@v4
with:
path: |
Client/build/fg_cache
Loader/build/fg_cache
- name: Build
run: |
bash scripts/gen_hash.sh
@ -56,9 +57,3 @@ jobs:
- name: Notify Action Completion
if: always()
run: bash scripts/webhook.sh "**(Loader)** Build Action Completed <@&1250456258629341284>
- name: Put ForgeGradle cache
if: always()
run: |
rm -rf ~/.gradle/caches/baseband/fg_cache
mkdir -p ~/.gradle/caches/baseband/
mv Client/build/fg_cache ~/.gradle/caches/baseband/