From 1aa036c9a513c90898d62983d2ad7a37a6a89a87 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 10 Apr 2024 00:58:38 +0800 Subject: [PATCH] Update xcode.yml with matrix to test destinations --- .github/workflows/xcode.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/xcode.yml b/.github/workflows/xcode.yml index 95d975f..a62a1a7 100644 --- a/.github/workflows/xcode.yml +++ b/.github/workflows/xcode.yml @@ -10,6 +10,9 @@ jobs: build: name: Build default scheme using xcodebuild command runs-on: macos-14 + strategy: + matrix: + destination: ['platform=macOS,arch=arm64', 'generic/platform=iOS'] steps: - name: Checkout @@ -27,8 +30,9 @@ jobs: - name: Build env: scheme: ${{ 'default' }} + destination: ${{ matrix.destination }} run: | if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild clean build -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=macOS,arch=arm64" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO + xcodebuild clean build -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO