Android CI - Clear cache on second build (#9223)
* clear cache on second build * alternative cache cleaning method
This commit is contained in:
@@ -50,8 +50,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: "temurin"
|
||||||
java-version: '17'
|
java-version: "17"
|
||||||
|
|
||||||
- name: ⚙️ Install dependencies
|
- name: ⚙️ Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
@@ -96,7 +96,7 @@ jobs:
|
|||||||
id: timestamp
|
id: timestamp
|
||||||
uses: nanzm/get-time-action@master
|
uses: nanzm/get-time-action@master
|
||||||
with:
|
with:
|
||||||
format: 'MM-DD-HH-mm-ss'
|
format: "MM-DD-HH-mm-ss"
|
||||||
|
|
||||||
- name: 🚀 Upload Production Artifact
|
- name: 🚀 Upload Production Artifact
|
||||||
id: upload-artifact-production
|
id: upload-artifact-production
|
||||||
@@ -146,6 +146,11 @@ jobs:
|
|||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
||||||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
||||||
|
|
||||||
|
- name: 🧹 Clear Metro cache
|
||||||
|
if: ${{ inputs.profile == 'production' }}
|
||||||
|
# https://github.com/expo/eas-cli/issues/2959#issuecomment-2749791326
|
||||||
|
run: rm -rf ${TMPDIR:-/tmp}/metro-cache
|
||||||
|
|
||||||
- name: 🏗️ Build Production APK
|
- name: 🏗️ Build Production APK
|
||||||
if: ${{ inputs.profile == 'production' }}
|
if: ${{ inputs.profile == 'production' }}
|
||||||
run: >
|
run: >
|
||||||
|
|||||||
Reference in New Issue
Block a user