Skip to content

Commit

Permalink
use matrix.device
Browse files Browse the repository at this point in the history
  • Loading branch information
danh-ld committed Sep 10, 2023
1 parent bce52bc commit 188900b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
# xcrun simctl boot "${UDID:?No Simulator with this name found}"
# run: xcrun simctl boot 66A6B2F3-3C93-4F80-9B07-F5AA621210E7
run: |
UUID=$(xcrun simctl list devices | grep -o "iPhone 8 ([A-Z0-9-]\+)" | awk -F '[()]' '{print $2}')
UUID=$(xcrun simctl list devices | grep -o "${matrix.device} ([A-Z0-9-]\+)" | awk -F '[()]' '{print $2}')
xcrun simctl boot $UUID
xcrun simctl boot "${UUID}"
# The branch or tag ref that triggered the workflow will be checked out.
# https://github.com/actions/checkout
- uses: actions/checkout@v1
- uses: actions/checkout@v3
# Sets up a flutter environment.
# https://github.com/marketplace/actions/flutter-action
# - uses: subosito/flutter-action@v1
Expand Down

0 comments on commit 188900b

Please sign in to comment.