diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7b16bd..79882c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,7 @@ jobs: - name: Prepare Destination Device Name shell: bash run: | - DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/tvOS\sSimulator.*(Apple\sTV\s4k.*)\s\}\.*/g) { print $1; }' | sort -r | head -n 1) + DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/tvOS\sSimulator.*(Apple\sTV\s4K.*)\s\}\.*/g) { print $1; }' | sort -r | head -n 1) echo Using device \"$DESTNAME\" echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV" - name: Unit Tests @@ -119,7 +119,7 @@ jobs: - name: Prepare Destination Device Name shell: bash run: | - DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/watchOS\sSimulator.*(Apple\sWatch\sseries\s[\d]{2}.*)\s\}\.*/g) { print $1; }' | sort -r | head -n 1) + DESTNAME=$(xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" | perl -nle 'if (m/watchOS\sSimulator.*(Apple\sWatch\sSeries\s[\d]{2}.*)\s\}\.*/g) { print $1; }' | sort -r | head -n 1) echo Using device \"$DESTNAME\" echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV" - name: Unit Tests