There was an error while loading. Please reload this page.
1 parent bf5be75 commit 0bad75fCopy full SHA for 0bad75f
1 file changed
.github/workflows/ci.yml
@@ -65,8 +65,10 @@ jobs:
65
max_attempts: 3
66
command: |
67
RUNTIME="${{ matrix.runtime }}"
68
- if ! xcodes runtimes 2>/dev/null | grep -qF "$RUNTIME (Installed)"; then
69
- sudo xcodes runtimes install "$RUNTIME" --aria2 $(which aria2c)
+ if xcrun simctl list runtimes -j | jq -e --arg name "$RUNTIME" '.runtimes[] | select(.isAvailable) | select(.name == $name)' >/dev/null; then
+ echo "Runtime '$RUNTIME' is already installed."
70
+ else
71
+ sudo xcodes runtimes install "$RUNTIME" --aria2 "$(which aria2c)"
72
fi
73
74
- name: Create Simulator
0 commit comments