Merge pull request #7636 from BlueWallet/cache

OPS: Remove all cache when building from master.
This commit is contained in:
GLaDOS 2025-02-25 20:08:13 +00:00 committed by GitHub
commit 685332ce22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,20 @@ jobs:
with:
fetch-depth: 0 # Ensures the full Git history is available
- name: Clear All Caches
if: github.ref == 'refs/heads/master'
run: |
echo "Clearing Xcode DerivedData..."
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "Clearing CocoaPods Cache..."
rm -rf ~/Library/Caches/CocoaPods
echo "Clearing npm Cache..."
npm cache clean --force
echo "Clearing Ruby Gems Cache..."
rm -rf ~/.gem
echo "Clearing Bundler Cache..."
rm -rf ~/.bundle/cache
- name: Ensure Correct Branch
if: github.ref != 'refs/heads/master'
run: |