-
Notifications
You must be signed in to change notification settings - Fork 1
99 lines (94 loc) · 2.84 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: iOS CI
on: [push]
jobs:
test:
name: "Build and test Velocidi SDK using [${{ matrix.os }}, xcode${{ matrix.xcode }}, sdk${{ matrix.sdk }}, ${{ matrix.device }}]"
env:
WORKSPACE: "VelocidiSDK.xcworkspace"
SCHEME: "VelocidiSDK"
strategy:
matrix:
include:
- os: "macos-10.15"
xcode: "11.7.0"
sdk: "13.7"
device: "iPhone 11"
- os: "macos-10.15"
xcode: "12.4"
sdk: "14.4"
device: "iPhone 11 Pro Max"
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "${{ matrix.xcode }}"
- name: "Install clang-format"
run: brew install clang-format
- name: "Install Dependencies"
run: make install
- name: "Compile and Test Velocidi SDK"
env:
TEST_SDK: "${{ matrix.sdk }}"
TEST_DEVICE: "${{ matrix.device }}"
run: |
make
make test
- name: "Verify code linting generated no changes"
run: git diff --exit-code -- . ':(exclude)Podfile.lock'
build-example-applications:
name: "Build example applications"
needs: test
runs-on: "macos-10.15"
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "latest-stable"
- name: "Install clang-format"
run: brew install clang-format
- name: "Install Dependencies"
run: make install
- name: "Build example Objective-C application"
run: make build-objc-example
- name: "Build example Swift application"
run: make build-swift-example
- name: "Verify code linting generated no changes"
run: git diff --exit-code -- . ':(exclude)Examples/Podfile.lock' ':(exclude)Podfile.lock'
run-oclint:
name: "OClint"
needs: test
runs-on: "macos-10.15"
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "latest-stable"
- name: "Install clang-format"
run: brew install clang-format
- name: "Install OClint"
run: |
brew tap oclint/formulae
brew install oclint
- name: "Install Dependencies"
run: make install
- name: "Run OCLint for VelocidiSDK"
run: make oclint
- name: "Run OCLint for example Objective-C application"
run: |
make build-objc-example
make oclint-examples
pods-lint:
name: "Cocoapods Lint"
needs: test
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "latest-stable"
- name: "Lint"
run: |
pod repo update
make install
make podlint