diff --git a/.github/workflows/ios_release.yml b/.github/workflows/ios_release.yml --- a/.github/workflows/ios_release.yml +++ b/.github/workflows/ios_release.yml @@ -14,6 +14,21 @@ - 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 }}