Skip to content

Commit

Permalink
[GitHub CI] Try clearing unused NDKs and iOS simulator to fix iOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashoat committed Sep 5, 2024
1 parent e6bcde5 commit 071118f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ios_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 071118f

Please sign in to comment.