Skip to content

Commit 0bad75f

Browse files
authored
CI: fix 26.2 runtime checks (#518)
1 parent bf5be75 commit 0bad75f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ jobs:
6565
max_attempts: 3
6666
command: |
6767
RUNTIME="${{ matrix.runtime }}"
68-
if ! xcodes runtimes 2>/dev/null | grep -qF "$RUNTIME (Installed)"; then
69-
sudo xcodes runtimes install "$RUNTIME" --aria2 $(which aria2c)
68+
if xcrun simctl list runtimes -j | jq -e --arg name "$RUNTIME" '.runtimes[] | select(.isAvailable) | select(.name == $name)' >/dev/null; then
69+
echo "Runtime '$RUNTIME' is already installed."
70+
else
71+
sudo xcodes runtimes install "$RUNTIME" --aria2 "$(which aria2c)"
7072
fi
7173
7274
- name: Create Simulator

0 commit comments

Comments
 (0)