From 2200d52ca7c2b17c344e9e70d1f91957a920447f Mon Sep 17 00:00:00 2001 From: Ryo Takeuchi Date: Fri, 5 Jan 2024 16:33:30 +0900 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20iOS=20=E3=81=AE=20CI=20?= =?UTF-8?q?=E3=82=92=E3=82=AB=E3=82=A4=E3=82=BC=E3=83=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51530360..cb146706 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,24 +89,32 @@ jobs: runs-on: macos-13 needs: filter if: needs.filter.outputs.check-ios == 'true' + strategy: + matrix: + destination: [ 'platform=iOS Simulator,OS=17.2,name=iPhone 15' ] steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4.1.1 - - uses: actions/setup-java@v4 + - name: Setup Java JDK + uses: actions/setup-java@v4.0.0 with: distribution: 'zulu' java-version: 17 + - name: Setup Xcode version + uses: maxim-lobanov/setup-xcode@v1.6.0 + with: + xcode-version: '15.1.0' + - name: Build iOS framework run: ./gradlew :app:ios-combined:assembleNitoKmpReleaseXCFramework - - name: Build iOS app - continue-on-error: true # TODO: Fix the certificates - run: xcodebuild -project app/ios/App/Nito/Nito.xcodeproj -configuration Debug -scheme Dev -sdk iphoneos -destination name='iPhone 8' build - - name: Run iOS unit tests - continue-on-error: true # TODO: Fix the certificates - run: xcodebuild test -project app/ios/App/Nito/Nito.xcodeproj -configuration Debug -scheme Dev -sdk iphoneos -destination name='iPhone 8' build -test-timeouts-enabled YES + continue-on-error: true + run: xcodebuild clean build -project app/ios/App/Nito/Nito.xcodeproj -configuration Debug -scheme Dev -sdk iphoneos -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -test-timeouts-enabled YES + env: + destination: ${{ matrix.destination }} backend: runs-on: ubuntu-22.04