This commit is contained in:
parent
8348ea86a9
commit
ce89c7234b
2 changed files with 14 additions and 23 deletions
|
@ -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/
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Add table
Reference in a new issue