Skip to content

Commit

Permalink
[GitHub CI] Try clearing unused NDKs and iOS simulator to fix Android CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashoat committed Sep 5, 2024
1 parent de1c4bb commit 1b386a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ jobs:
steps:
- 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: rustup target add aarch64-linux-android arm-linux-androideabi x86_64-linux-android
run: rustup target add aarch64-linux-android arm-linux-androideabi x86_64-linux-android

Expand Down

0 comments on commit 1b386a9

Please sign in to comment.