From 9ca2527ec7a0152a4ca073e71d9b48c2b67adee7 Mon Sep 17 00:00:00 2001 From: Nadya Karaban Date: Tue, 30 Apr 2024 11:58:57 +0200 Subject: [PATCH] ci(GiniHealthSDK): Update Xcode 14.3.1, update testing simulators, remove linking old simulators - since it's not supported anymore, add manual trigger for check workflow --- .github/workflows/health-sdk.build.docs.yml | 2 +- .github/workflows/health-sdk.check.yml | 15 ++++----------- .github/workflows/health-sdk.publish.docs.yml | 2 +- .../workflows/health-sdk.publish.example.apps.yml | 2 +- .github/workflows/health-sdk.release.yml | 2 +- 5 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/health-sdk.build.docs.yml b/.github/workflows/health-sdk.build.docs.yml index a5f49c967..a251e3eb3 100644 --- a/.github/workflows/health-sdk.build.docs.yml +++ b/.github/workflows/health-sdk.build.docs.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: maxim-lobanov/setup-xcode@v1.5.1 with: - xcode-version: '14.2' + xcode-version: '14.3.1' - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/health-sdk.check.yml b/.github/workflows/health-sdk.check.yml index 8f08feae6..78da2ae1e 100644 --- a/.github/workflows/health-sdk.check.yml +++ b/.github/workflows/health-sdk.check.yml @@ -14,18 +14,19 @@ on: secrets: GINI_MOBILE_TEST_CLIENT_SECRET: required: true - + workflow_dispatch: + jobs: check: runs-on: macos-latest strategy: matrix: target: [GiniHealthSDK, GiniHealthSDKPinning] - destination: ['platform=iOS Simulator,OS=16.2,name=iPhone 13', 'platform=iOS Simulator,OS=15.0,name=iPhone 11'] + destination: ['platform=iOS Simulator,OS=16.4,name=iPhone SE (3rd generation)', 'platform=iOS Simulator,OS=17.2,name=iPhone 14'] steps: - uses: maxim-lobanov/setup-xcode@v1.5.1 with: - xcode-version: '14.2' + xcode-version: '14.3.1' - name: Checkout uses: actions/checkout@v3 @@ -40,14 +41,6 @@ jobs: cd HealthSDK/GiniHealthSDKPinning swift package update - - name: Link to 15.0 Simulators - if: matrix.destination == 'platform=iOS Simulator,OS=15.0,name=iPhone 11' - run: | - echo "Creating Runtimes folder if needed..." - sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes - echo "Creating symlink of the iOS 15.0 runtime..." - sudo ln -s /Applications/Xcode_13.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 15.0.simruntime - - name: Build sdk targets run: | xcodebuild -workspace GiniMobile.xcworkspace -scheme "${{ matrix.target }}" -destination "${{ matrix.destination }}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO diff --git a/.github/workflows/health-sdk.publish.docs.yml b/.github/workflows/health-sdk.publish.docs.yml index 5a1d0e019..2c8cf3b0a 100644 --- a/.github/workflows/health-sdk.publish.docs.yml +++ b/.github/workflows/health-sdk.publish.docs.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: maxim-lobanov/setup-xcode@v1.5.1 with: - xcode-version: '14.2' + xcode-version: '14.3.1' - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/health-sdk.publish.example.apps.yml b/.github/workflows/health-sdk.publish.example.apps.yml index 74650a637..75c22b85f 100644 --- a/.github/workflows/health-sdk.publish.example.apps.yml +++ b/.github/workflows/health-sdk.publish.example.apps.yml @@ -20,7 +20,7 @@ jobs: - uses: maxim-lobanov/setup-xcode@v1.5.1 with: - xcode-version: '14.2' + xcode-version: '14.3.1' - name: Setup provisioning profile env: diff --git a/.github/workflows/health-sdk.release.yml b/.github/workflows/health-sdk.release.yml index 18e835d3e..7a2d55599 100644 --- a/.github/workflows/health-sdk.release.yml +++ b/.github/workflows/health-sdk.release.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: maxim-lobanov/setup-xcode@v1.5.1 with: - xcode-version: '14.2' + xcode-version: '14.3.1' - name: Checkout uses: actions/checkout@v3