-
Notifications
You must be signed in to change notification settings - Fork 11
71 lines (60 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
71 lines (60 loc) · 1.89 KB
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
name: "HTTPParserC CI"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PROJECT: HTTPParserC.xcodeproj
SCHEME: HTTPParserC
jobs:
iOS:
name: Build iOS
runs-on: macos-latest
strategy:
matrix:
destination: ["iPhone 8", "iPhone 14 Pro", "iPad Air (5th generation)", "iPad Pro (9.7-inch)"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build iOS
run: |
set -o pipefail
xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "platform=iOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
tvOS:
name: Build tvOS
runs-on: macos-latest
strategy:
matrix:
destination: ["Apple TV 4K (3rd generation)"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build tvOS
run: |
set -o pipefail
xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "platform=tvOS Simulator,name=${{ matrix.destination }}" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;
macOS:
name: Build macOS
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build macOS
run: |
set -o pipefail
xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "platform=macOS,arch=x86_64" -configuration Release ONLY_ACTIVE_ARCH=NO | xcpretty -c;