-
Notifications
You must be signed in to change notification settings - Fork 13
103 lines (95 loc) · 2.88 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
100
101
102
103
name: CI
on:
push:
branches: [master]
paths:
- "**.swift"
- "**.podspec"
- ".github/workflows/*"
pull_request:
branches: [master]
paths:
- "**.swift"
- "**.podspec"
- ".github/workflows/*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: "/Applications/Xcode_15.2.app/Contents/Developer"
jobs:
build-mac:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Update Tools
run: gem update cocoapods
- name: Print Versions
run: |
xcodebuild -version
swift --version
pod --version
- name: Build
run: swift build --build-tests
- name: Run tests
run: swift test --skip-build
- name: Pod lint
run: pod lib lint
- name: Verify Carthage
run: carthage build --no-skip-current --verbose --use-xcframeworks --platform macOS
build-ios:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Test
run: |
set -o pipefail && xcodebuild \
-scheme CombineCoreBluetooth \
-workspace ./CombineCoreBluetooth.xcworkspace/ \
-destination "platform=iOS Simulator,OS=latest,name=iPhone 15" \
-sdk iphonesimulator \
-enableCodeCoverage YES \
-disableAutomaticPackageResolution \
test | xcpretty -c
build-tvos:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Test
run: |
set -o pipefail && xcodebuild \
-scheme CombineCoreBluetooth \
-workspace ./CombineCoreBluetooth.xcworkspace/ \
-destination "platform=tvOS Simulator,OS=latest,name=Apple TV" \
-sdk appletvsimulator \
-enableCodeCoverage YES \
-disableAutomaticPackageResolution \
test | xcpretty -c
build-watchos:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Test
run: |
set -o pipefail && xcodebuild \
-scheme CombineCoreBluetooth \
-workspace ./CombineCoreBluetooth.xcworkspace/ \
-destination "platform=watchOS Simulator,OS=latest,name=Apple Watch Ultra (49mm)" \
-sdk watchsimulator \
-enableCodeCoverage YES \
-disableAutomaticPackageResolution \
test | xcpretty -c
build-visionos:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Test
run: |
set -o pipefail && xcodebuild \
-scheme CombineCoreBluetooth \
-workspace ./CombineCoreBluetooth.xcworkspace/ \
-destination "platform=visionOS Simulator,OS=latest,name=Apple Vision Pro" \
-sdk xrsimulator \
-enableCodeCoverage YES \
-disableAutomaticPackageResolution \
test | xcpretty -c