You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2021/10/16 05:56:34 UTC

[cordova-paramedic] branch master updated: ci(ios): improve version matrix & pr configs (#227)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git


The following commit(s) were added to refs/heads/master by this push:
     new ee7b7c3  ci(ios): improve version matrix & pr configs (#227)
ee7b7c3 is described below

commit ee7b7c398c4e07e7c8aa7b1dbd304392c844d26c
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Sat Oct 16 14:56:27 2021 +0900

    ci(ios): improve version matrix & pr configs (#227)
---
 .github/workflows/ios.yml          | 22 ++++++++++++++++++----
 conf/pr/local/ios-12.x.config.json |  2 +-
 conf/pr/local/ios-14.x.config.json |  2 +-
 3 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index 47f83e4..2f6a93a 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -32,7 +32,7 @@ on:
 jobs:
   test:
     name: iOS ${{ matrix.versions.ios-version }} Test
-    runs-on: macos-latest
+    runs-on: ${{ matrix.versions.os-version }}
 
     # hoist configurations to top that are expected to be updated
     env:
@@ -49,9 +49,17 @@ jobs:
     strategy:
       matrix:
         versions:
-          - ios-version: 12.x
-          - ios-version: 13.x
-          - ios-version: 14.x
+          - os-version: macos-10.15
+            ios-version: 12.x
+            xcode-version: 11.x
+
+          - os-version: macos-10.15
+            ios-version: 13.x
+            xcode-version: 11.x
+
+          - os-version: macos-10.15
+            ios-version: 14.x
+            xcode-version: 12.x
 
     steps:
       - uses: actions/checkout@v2
@@ -75,6 +83,12 @@ jobs:
           npm i -g cordova@latest ios-deploy@latest
           npm ci
 
+      - name: Run setup iOS 12.x support
+        if: ${{ matrix.versions.ios-version == '12.x' }}
+        run: |
+          sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
+          sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime
+
       - name: Run paramedic install
         if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
         run: npm i -g github:apache/cordova-paramedic
diff --git a/conf/pr/local/ios-12.x.config.json b/conf/pr/local/ios-12.x.config.json
index 9365896..9385bf5 100644
--- a/conf/pr/local/ios-12.x.config.json
+++ b/conf/pr/local/ios-12.x.config.json
@@ -2,6 +2,6 @@
     "platform": "ios@latest",
     "action": "run",
     "cleanUpAfterRun": true,
-    "target": "iPhone-11, 12.5.4",
+    "target": "iPhone-8, 12.4",
     "verbose": true
 }
diff --git a/conf/pr/local/ios-14.x.config.json b/conf/pr/local/ios-14.x.config.json
index 7467f9b..8275e1d 100644
--- a/conf/pr/local/ios-14.x.config.json
+++ b/conf/pr/local/ios-14.x.config.json
@@ -2,6 +2,6 @@
     "platform": "ios@latest",
     "action": "run",
     "cleanUpAfterRun": true,
-    "target": "iPhone-11, 14.7.1",
+    "target": "iPhone-12, 14.4",
     "verbose": true
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org