-
-
Notifications
You must be signed in to change notification settings - Fork 44
151 lines (129 loc) · 4.89 KB
/
test.yml
File metadata and controls
151 lines (129 loc) · 4.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: Test
on:
pull_request:
push:
branches: [main]
tags: ['v*']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cli:
name: CLI Build + Integration + Smoke
runs-on: macos-15
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
# Pinned: Xcode 26.3 + macos-15 runner crashes ibtoold during
# AppIcon.icon (Icon Composer) compile with dyld AVFCore symbol
# mismatches. 26.2 builds the .icon asset cleanly.
xcode-version: "26.2"
- name: Install xcodegen
run: brew install xcodegen
- name: Generate Xcode project
run: xcodegen generate
- name: Cache DerivedData and SPM
uses: actions/cache@v4
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
key: ${{ runner.os }}-cli-${{ hashFiles('project.yml', 'Packages/ClearlyCore/Package.swift', 'Packages/ClearlyCore/Package.resolved') }}
restore-keys: |
${{ runner.os }}-cli-
- name: Build ClearlyCLI (Debug)
run: xcodebuild -scheme ClearlyCLI -configuration Debug build -quiet
- name: Integration tests
run: |
xcodebuild test \
-scheme ClearlyCLIIntegrationTests \
-destination 'platform=macOS' \
-quiet
- name: CLI smoke test
run: ./scripts/cli-smoke.sh
build-app-macos:
name: Build Mac app (Debug)
runs-on: macos-15
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
# Pinned: Xcode 26.3 + macos-15 runner crashes ibtoold during
# AppIcon.icon (Icon Composer) compile with dyld AVFCore symbol
# mismatches. 26.2 builds the .icon asset cleanly.
xcode-version: "26.2"
- name: Install xcodegen
run: brew install xcodegen
- name: Generate Xcode project
run: xcodegen generate
- name: Cache DerivedData and SPM
uses: actions/cache@v4
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
key: ${{ runner.os }}-app-macos-${{ hashFiles('project.yml', 'Packages/ClearlyCore/**/*.swift', 'Packages/ClearlyCore/Package.swift') }}
restore-keys: |
${{ runner.os }}-app-macos-
- name: Build Clearly (Mac, Debug)
# Skip the AppIcon.icon (Icon Composer) asset compile in CI: ibtoold
# crashes on the macos-15 runner image due to dyld AVFCore symbol
# mismatches. The Swift code still compiles fully — only the icon is
# skipped, which we don't ship from CI anyway.
run: |
xcodebuild \
-scheme Clearly \
-configuration Debug \
-destination 'platform=macOS' \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
ASSETCATALOG_COMPILER_APPICON_NAME="" \
EXCLUDED_SOURCE_FILE_NAMES="AppIcon.icon" \
build -quiet
build-app-ios:
name: Build iOS app (Debug)
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
# Pinned: Xcode 26.3 + macos-15 runner crashes ibtoold during
# AppIcon.icon (Icon Composer) compile with dyld AVFCore symbol
# mismatches. 26.2 builds the .icon asset cleanly.
xcode-version: "26.2"
- name: Install xcodegen
run: brew install xcodegen
- name: Generate Xcode project
run: xcodegen generate
- name: Cache DerivedData and SPM
uses: actions/cache@v4
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
key: ${{ runner.os }}-app-ios-${{ hashFiles('project.yml', 'Packages/ClearlyCore/**/*.swift', 'Packages/ClearlyCore/Package.swift') }}
restore-keys: |
${{ runner.os }}-app-ios-
- name: Build Clearly-iOS (iPhone simulator, Debug)
# Skip the AppIcon.icon asset compile in CI — see Mac build job above.
# Use generic iOS Simulator destination so the build doesn't depend on
# a specific named device being pre-installed on the runner image.
run: |
xcodebuild \
-scheme Clearly-iOS \
-configuration Debug \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
ASSETCATALOG_COMPILER_APPICON_NAME="" \
EXCLUDED_SOURCE_FILE_NAMES="AppIcon.icon" \
build -quiet