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