Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 2c32fa0

Browse files
committed
Move SIMULATOR_NAME setup to step script
The SIMULATOR_NAME environment variable is now set within the simulator setup step using GITHUB_ENV, rather than globally in the job env section. This change ensures the variable is available for subsequent steps and improves clarity in the workflow.
1 parent 49476ec commit 2c32fa0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ui_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
#runs-on: macos-26
1818
runs-on: [self-hosted, macOS]
1919

20-
env:
21-
SIMULATOR_NAME: ${{ runner.name }}-iPhone
22-
2320
steps:
24-
- name: Create simulator if needed
25-
run: xcrun simctl create "$SIMULATOR_NAME" "iPhone 17" 2>/dev/null || true
21+
- name: Setup simulator for runner
22+
run: |
23+
echo "SIMULATOR_NAME=${{ runner.name }}-iPhone" >> $GITHUB_ENV
24+
xcrun simctl create "${{ runner.name }}-iPhone" "iPhone 17" 2>/dev/null || true
25+
2626
- name: Setup sccache for GitHub-hosted
2727
if: runner.environment == 'github-hosted'
2828
run: |

0 commit comments

Comments
 (0)