Skip to content

Commit 50198a8

Browse files
committed
feat(ci): new simulator selection for watchOS 🚀
1 parent de2ef49 commit 50198a8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/build-watchos.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,9 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v2
20-
- name: Select watchOS Simulator
21-
id: select_sim
22-
run: |
23-
SIMULATOR_ID=$(xcrun simctl list devices available | grep -E 'Apple Watch' | grep -Eo '[A-F0-9\-]{36}' | head -n1)
24-
echo "SIMULATOR_ID=$SIMULATOR_ID" >> $GITHUB_ENV
2520
- name: Build watchOS framework
2621
run: |
27-
set -o pipefail && xcodebuild -project ID3TagEditor.xcodeproj -scheme "ID3TagEditor watchOS" clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "id=$SIMULATOR_ID" -skipPackagePluginValidation | xcpretty
22+
set -o pipefail && xcodebuild -project ID3TagEditor.xcodeproj -scheme "ID3TagEditor watchOS" clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "platform=watchOS Simulator,name=Apple Watch SE (40mm) (2nd generation),OS=11.2" -skipPackagePluginValidation | xcpretty
2823
- name: Build watchOS Demo
2924
run: |
30-
set -o pipefail && xcodebuild -project Demo/Demo.xcodeproj -scheme "Demo watchOS" clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -destination "id=$SIMULATOR_ID" -skipPackagePluginValidation | xcpretty
25+
set -o pipefail && xcodebuild -project Demo/Demo.xcodeproj -scheme "Demo watchOS" clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -destination "platform=watchOS Simulator,name=Apple Watch SE (40mm) (2nd generation),OS=11.2" -skipPackagePluginValidation | xcpretty

0 commit comments

Comments
 (0)