-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (71 loc) · 2.53 KB
/
test.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
85
86
name: Build and test
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
test-package:
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
strategy:
fail-fast: false
matrix:
config:
- { destination: 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' }
- { destination: 'platform=macOS,arch=x86_64' }
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and test
run: |
set -o pipefail && xcodebuild \
-scheme 'Pexip-Package' \
-destination '${{ matrix.config.destination }}' \
clean build test | xcpretty
build-conference-example:
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
strategy:
fail-fast: false
matrix:
config:
- { scheme: 'Example (iOS)', destination: 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' }
- { scheme: 'Example (macOS)', destination: 'platform=macOS,arch=x86_64' }
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
set -o pipefail && xcodebuild \
-project Examples/Conference/Example.xcodeproj \
-scheme '${{ matrix.config.scheme }}' \
-destination '${{ matrix.config.destination }}' \
clean build CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" CODE_SIGN_ENTITLEMENTS="" | xcpretty
build-video-filters-example:
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup CocoaPods cache
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install CocoaPods
run: pod install --project-directory=Examples/VideoFilters
- name: Build
run: |
set -o pipefail && arch -x86_64 xcodebuild \
-workspace Examples/VideoFilters/VideoFiltersExample.xcworkspace \
-scheme 'VideoFiltersExample' \
-destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' \
clean build CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" | xcpretty