Skip to content

Commit b0c7ff8

Browse files
committed
Updated GitHub CI
1 parent 1ed386c commit b0c7ff8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
shell: bash
6767
run: |
6868
DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/iOS\sSimulator.*(iPhone.*)\s\}\.*/g) { print $1; }' | head -n 1)
69-
echo Using device \"$destName\"
69+
echo Using device \"$DESTNAME\"
7070
echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV"
7171
- name: Unit Tests
7272
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=$DESTNAME" | xcpretty && exit ${PIPESTATUS[0]}
@@ -85,7 +85,7 @@ jobs:
8585
shell: bash
8686
run: |
8787
DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/tvOS\sSimulator.*(Apple\sTV.*)\s\}\.*/g) { print $1; }' | head -n 1)
88-
echo Using device \"$destName\"
88+
echo Using device \"$DESTNAME\"
8989
echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV"
9090
- name: Unit Tests
9191
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=tvOS Simulator,name=$DESTNAME" | xcpretty && exit ${PIPESTATUS[0]}
@@ -104,7 +104,7 @@ jobs:
104104
shell: bash
105105
run: |
106106
DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/watchOS\sSimulator.*(Apple\sWatch.*)\s\}\.*/g) { print $1; }' | head -n 1)
107-
echo Using device \"$destName\"
107+
echo Using device \"$DESTNAME\"
108108
echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV"
109109
- name: Unit Tests
110110
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=watchOS Simulator,name=$DESTNAME" | xcpretty && exit ${PIPESTATUS[0]}

0 commit comments

Comments
 (0)