fix gradle caching
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m57s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m57s
This commit is contained in:
parent
402dc2ddf9
commit
c7fe41b57c
2 changed files with 21 additions and 1 deletions
|
@ -24,6 +24,11 @@ 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: |
|
||||
cp ~/.gradle/caches/baseband/fg_cache Client/build/fg_cache
|
||||
ln ../../Client/build/fg_cache Loader/build/fg_cache
|
||||
- name: Build
|
||||
run: |
|
||||
bash scripts/gen_hash.sh
|
||||
|
@ -74,4 +79,9 @@ jobs:
|
|||
- name: Notify Action Completion
|
||||
if: always()
|
||||
run: bash scripts/webhook.sh "**(Client)** Build Action Completed <@&1250456258629341284>"
|
||||
- name: Put ForgeGradle cache
|
||||
if: always()
|
||||
run: |
|
||||
mkdir -p ~/.gradle/caches/baseband/
|
||||
mv Client/build/fg_cache ~/.gradle/caches/baseband/
|
||||
|
||||
|
|
|
@ -26,6 +26,11 @@ 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: |
|
||||
cp ~/.gradle/caches/baseband/fg_cache Client/build/fg_cache
|
||||
ln ../../Client/build/fg_cache Loader/build/fg_cache
|
||||
- name: Build
|
||||
run: |
|
||||
bash scripts/gen_hash.sh
|
||||
|
@ -49,4 +54,9 @@ jobs:
|
|||
bash scripts/push_file.sh Loader/build/proguard/BaseBand-Loader.jar
|
||||
- name: Notify Action Completion
|
||||
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: |
|
||||
mkdir -p ~/.gradle/caches/baseband/
|
||||
mv Client/build/fg_cache ~/.gradle/caches/baseband/"
|
||||
|
|
Loading…
Add table
Reference in a new issue