Skip to content

Commit

Permalink
ci: use action to launch a simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Jun 4, 2024
1 parent 41199b4 commit 8c0c28c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ jobs:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- run: |
target_sim_id=$(xcrun simctl list devices available | grep "$DEVICE_NAME (" | cut -d "(" -f2 | cut -d ")" -f1)
open -Fn "$(xcode-select -p)/Applications/Simulator.app"
xcrun simctl bootstatus $target_sim_id -b
xcrun simctl shutdown $target_sim_id
name: Preboot ${{ env.DEVICE_NAME }}
- uses: futureware-tech/simulator-action@v3
with:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
model: ${{ env.DEVICE_NAME }}
os_version: ${{ env.PLATFORM_VERSION }}
- run: brew install python@${PYTHON_VERSION}
- run: |
brew tap facebook/fb
Expand Down

0 comments on commit 8c0c28c

Please sign in to comment.