-
Notifications
You must be signed in to change notification settings - Fork 30
84 lines (82 loc) · 3.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: WebRTC iOS SDK CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-sample-app:
strategy:
matrix:
config: [
{mac_ver: "13", xc_ver: "15.2", os: "17.2", iphone_ver: "14"},
{mac_ver: "14", xc_ver: "15.4", os: "17.5", iphone_ver: "15"},
{mac_ver: "15", xc_ver: "15.4", os: "17.5", iphone_ver: "15 Pro"},
{mac_ver: "15", xc_ver: "16.0", os: "18.0", iphone_ver: "16"}
]
fail-fast: false
runs-on: macos-${{ matrix.config.mac_ver }}
steps:
- name: Git - Checkout
uses: actions/checkout@master
- name: Setup - Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.config.xc_ver }}.app
- name: Install dependencies
run: |
cd Swift
pod setup
pod install --repo-update
lipo -info Pods/GoogleWebRTC/Frameworks/frameworks/WebRTC.framework/WebRTC
- name: XCode Build
run: |
xcodebuild clean build -workspace Swift/AWSKinesisVideoWebRTCDemoApp.xcworkspace \
-scheme AWSKinesisVideoWebRTCDemoApp \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,OS=${{ matrix.config.os }},name=iPhone ${{ matrix.config.iphone_ver }}' \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED="NO" \
CODE_SIGN_ENTITLEMENTS="" \
CODE_SIGNING_ALLOWED="NO" \
ARCHS="x86_64"
run-unit-tests:
strategy:
matrix:
config: [
{mac_ver: "13", xc_ver: "15.2", os: "17.2", iphone_ver: "14"},
{mac_ver: "14", xc_ver: "15.4", os: "17.5", iphone_ver: "15"},
{mac_ver: "15", xc_ver: "15.4", os: "17.5", iphone_ver: "15 Pro"},
{mac_ver: "15", xc_ver: "16.0", os: "18.0", iphone_ver: "16"}
]
fail-fast: false
runs-on: macos-${{ matrix.config.mac_ver }}
steps:
- name: Git - Checkout
uses: actions/checkout@master
- name: Modify constants
run: sed -i '' 's/Unknown/USWest2/g' Swift/KVSiOSApp/Constants.swift
- name: Setup - Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.config.xc_ver }}.app
- name: Install dependencies
run: |
cd Swift
pod setup
pod install --repo-update
- name: XCode Test
run: |
set -o pipefail && xcodebuild clean test -workspace Swift/AWSKinesisVideoWebRTCDemoApp.xcworkspace \
-scheme AWSKinesisVideoWebRTCDemoApp \
-sdk iphonesimulator \
-resultBundlePath TestResults \
-enableCodeCoverage YES \
-destination 'platform=iOS Simulator,OS=${{ matrix.config.os }},name=iPhone ${{ matrix.config.iphone_ver }}' \
'-only-testing:AWSKinesisVideoWebRTCDemoAppTests' \
ARCHS="x86_64" | xcpretty
- name: Publish results
uses: slidoapp/xcresulttool@v3.1.0
with:
title: Test results (OS ${{ matrix.config.os }})
path: TestResults.xcresult
upload-bundles: never
if: success() || failure()