From 071118fe9fa9659530ebc74263cd67e5483f5fbd Mon Sep 17 00:00:00 2001 From: Ashoat Tevosyan Date: Thu, 5 Sep 2024 13:52:01 -0400 Subject: [PATCH] [GitHub CI] Try clearing unused NDKs and iOS simulator to fix iOS CI --- .github/workflows/ios_ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ios_ci.yml b/.github/workflows/ios_ci.yml index 24bdfa510f..ef17ddbea3 100644 --- a/.github/workflows/ios_ci.yml +++ b/.github/workflows/ios_ci.yml @@ -21,6 +21,21 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Clear unused NDKs + run: | + ls -1 "$ANDROID_SDK_ROOT/ndk" | + awk '{ + if (system("git grep " $0 " > /dev/null")) { + system("rm -rf '"$ANDROID_SDK_ROOT/ndk/"'" $0); + } + }' + + - name: Delete all iOS simulators + run: xcrun simctl delete all + + - name: Delete iOS simulator caches + run: sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/* + - name: Install Developer certificate env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}