@@ -12,18 +12,24 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15+ # One toolchain: GitHub's `xcode-27` image (macOS 27.0, default Xcode 27.0 27A266a), the same
16+ # Xcode the engine is consumed and released from. The earlier macos-15 lanes resolved
17+ # `latest-stable` to Xcode 26.3, whose Swift 6.2 disagreed with 6.4 in both directions (6.4
18+ # rejects isolation shapes 6.3 accepted, 2026-09-16; 6.2 timed out type-checking a literal sum
19+ # inside #expect, 2026-09-30), and nothing downstream builds with 26.x any more, so the README's
20+ # requirement is Xcode 27 and CI tests exactly that. `xcode-27` is still a GitHub preview image.
21+ # Its flaky `swift test` runs of mid-September were on a beta macOS 27 base with Xcode 27
22+ # beta 6; the image moved to macOS 27 on 2026-09-16. If it turns unstable again, that shows as
23+ # a lane red for its image, which is the signal to wait for the GA label, not to lower the bar.
24+ # All three macOS jobs use it, which stays within the account's concurrent macOS runners.
1525 test-macos :
1626 name : swift test (macOS)
17- runs-on : macos-15
27+ runs-on : xcode-27
1828 timeout-minutes : 30
1929 env :
2030 AUTHORIZATION_TEST_SUITES : ' RefreshableHLSAuthorizationTests|RefreshableSubtitleAuthorizationTests|LiveTrustEvaluatorTests'
2131 steps :
22- - uses : actions/checkout@v4
23-
24- - uses : maxim-lobanov/setup-xcode@v1
25- with :
26- xcode-version : latest-stable
32+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2733
2834 - name : Show toolchain
2935 run : |
@@ -72,23 +78,11 @@ jobs:
7278 run : swift build --build-tests --package-path Probes/TransportProbe
7379
7480 build-tvos :
75- name : xcodebuild (tvOS Simulator)
76- runs-on : macos-15
81+ name : xcodebuild (tvOS + visionOS Simulator)
82+ runs-on : xcode-27
7783 timeout-minutes : 30
7884 steps :
79- - uses : actions/checkout@v4
80-
81- - uses : maxim-lobanov/setup-xcode@v1
82- with :
83- xcode-version : latest-stable
84-
85- - name : Build for tvOS Simulator
86- run : |
87- xcodebuild build \
88- -scheme AetherEngine \
89- -destination 'generic/platform=tvOS Simulator' \
90- -derivedDataPath .build/xcode-tvos \
91- CODE_SIGNING_ALLOWED=NO
85+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
9286
9387 # The test target is the only place a platform gate in TEST code is ever checked. `swift test`
9488 # on macOS compiles the macOS side of every `#if`, so a gate put around a helper instead of
@@ -98,12 +92,16 @@ jobs:
9892 #
9993 # EXCLUDED_ARCHS because a generic simulator destination builds both slices and `libdovi.a`
10094 # ships arm64 only, so the x86_64 link fails and says nothing about this repo.
95+ #
96+ # This step also compiles the library, so no separate `xcodebuild build` of the AetherEngine
97+ # scheme runs first: that doubled every simulator job's compile, and the x86_64 slice it added
98+ # is one no app can link anyway.
10199 - name : Build the tests for tvOS Simulator
102100 run : |
103101 xcodebuild build-for-testing \
104102 -scheme AetherEngineTests \
105103 -destination 'generic/platform=tvOS Simulator' \
106- -derivedDataPath .build/xcode-tvos-tests \
104+ -derivedDataPath .build/xcode-tvos \
107105 EXCLUDED_ARCHS=x86_64 \
108106 CODE_SIGNING_ALLOWED=NO
109107
@@ -120,52 +118,12 @@ jobs:
120118 -derivedDataPath .build/xcode-probe \
121119 CODE_SIGNING_ALLOWED=NO
122120
123- build-ios :
124- name : xcodebuild (iOS Simulator)
125- runs-on : macos-15
126- timeout-minutes : 30
127- steps :
128- - uses : actions/checkout@v4
129-
130- - uses : maxim-lobanov/setup-xcode@v1
131- with :
132- xcode-version : latest-stable
133-
134- - name : Build for iOS Simulator
135- run : |
136- xcodebuild build \
137- -scheme AetherEngine \
138- -destination 'generic/platform=iOS Simulator' \
139- -derivedDataPath .build/xcode-ios \
140- CODE_SIGNING_ALLOWED=NO
141-
142- # The other half of the gate check above; see the tvOS job for why the test target needs its
143- # own build and why x86_64 is excluded.
144- - name : Build the tests for iOS Simulator
145- run : |
146- xcodebuild build-for-testing \
147- -scheme AetherEngineTests \
148- -destination 'generic/platform=iOS Simulator' \
149- -derivedDataPath .build/xcode-ios-tests \
150- EXCLUDED_ARCHS=x86_64 \
151- CODE_SIGNING_ALLOWED=NO
152-
153- # #344: the package has declared visionOS since 6.0.0 and nothing here compiled for it, so an
154- # availability list that named tvOS/iOS/macOS and then fell through to `*` broke the visionOS
155- # build silently. `*` resolves to the declared visionOS floor (1.0), so any API newer than that
156- # is a compile error on visionOS and on no other platform. Nobody here owns a Vision Pro, which
157- # makes this job the only place the platform is exercised at all.
158- build-visionos :
159- name : xcodebuild (visionOS Simulator)
160- runs-on : macos-15
161- timeout-minutes : 30
162- steps :
163- - uses : actions/checkout@v4
164-
165- - uses : maxim-lobanov/setup-xcode@v1
166- with :
167- xcode-version : latest-stable
168-
121+ # #344: the package has declared visionOS since 6.0.0 and nothing here compiled for it, so an
122+ # availability list that named tvOS/iOS/macOS and then fell through to `*` broke the visionOS
123+ # build silently. `*` resolves to the declared visionOS floor (1.0), so any API newer than that
124+ # is a compile error on visionOS and on no other platform. Nobody here owns a Vision Pro, which
125+ # makes this step the only place the platform is exercised at all. It rides in this job so CI
126+ # stays within the account's concurrent macOS runners instead of queueing a sixth job.
169127 - name : Build for visionOS Simulator
170128 run : |
171129 xcodebuild build \
@@ -174,61 +132,30 @@ jobs:
174132 -derivedDataPath .build/xcode-visionos \
175133 CODE_SIGNING_ALLOWED=NO
176134
177- # The Xcode 27 lane. Every job above resolves `latest-stable` on macos-15, which is Xcode 26.3,
178- # while the engine is consumed and released from Xcode 27, and Swift 6.4 rejects isolation shapes
179- # 6.3 accepted (the Sodalite test target stopped compiling on exactly that, 2026-09-16). These two
180- # jobs compile the package and both test targets against the 27 toolchain, for macOS and for the
181- # tvOS 27 SDK.
182- #
183- # They build and do not run the tests, on purpose. `xcode-27` is GitHub's preview image and runs a
184- # BETA macOS 27 (26A5406e) under Xcode 27 beta 6: measured on two attempts of the first run, Vision
185- # text recognition returns nil there and the loopback-origin tests starve (a global-queue block not
186- # scheduled within 30 s, a TLS relay request timing out), a different set of network tests each
187- # time, while all 2983 pass on macOS 27 GA on a Mac. A lane that is red for its image teaches
188- # everyone to ignore red. Run `swift test` here once a GA macOS 27 image ships, and that is also
189- # the point to move to its label; the preview label disappearing fails these jobs loudly first.
190- # This lane replaces the weekly beta SDK watcher, whose one subject (#351) the 7.0 platform floor
191- # closed.
192- build-macos-xcode27 :
193- name : swift build --build-tests (macOS, Xcode 27)
194- runs-on : xcode-27
195- timeout-minutes : 30
196- steps :
197- - uses : actions/checkout@v4
198-
199- - name : Show toolchain
200- run : |
201- swift --version
202- xcodebuild -version
203-
204- - name : swift build --build-tests
205- run : swift build --build-tests
206-
207- build-tvos-xcode27 :
208- name : xcodebuild (tvOS Simulator, Xcode 27)
135+ build-ios :
136+ name : xcodebuild (iOS Simulator) + release aetherctl
209137 runs-on : xcode-27
210138 timeout-minutes : 30
211139 steps :
212- - uses : actions/checkout@v4
213-
214- - name : Build for tvOS Simulator
215- run : |
216- xcodebuild build \
217- -scheme AetherEngine \
218- -destination 'generic/platform=tvOS Simulator' \
219- -derivedDataPath .build/xcode-tvos \
220- CODE_SIGNING_ALLOWED=NO
140+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
221141
222- # See the tvOS job above for why the test target needs its own build and why x86_64 is excluded.
223- - name : Build the tests for tvOS Simulator
142+ # The other half of the gate check above; see the tvOS job for why the test target needs its
143+ # own build and why x86_64 is excluded.
144+ - name : Build the tests for iOS Simulator
224145 run : |
225146 xcodebuild build-for-testing \
226147 -scheme AetherEngineTests \
227- -destination 'generic/platform=tvOS Simulator' \
228- -derivedDataPath .build/xcode-tvos-tests \
148+ -destination 'generic/platform=iOS Simulator' \
149+ -derivedDataPath .build/xcode-ios \
229150 EXCLUDED_ARCHS=x86_64 \
230151 CODE_SIGNING_ALLOWED=NO
231152
153+ # Every other Swift step in CI is Debug, and aetherctl is not a product, so no consumer compiles
154+ # it either: a DEBUG-only engine hook called without a guard kept Release broken from 7.6.0 to
155+ # 7.14.0 without anything noticing (AE#610). Off the `swift test` job's critical path.
156+ - name : swift build -c release (aetherctl)
157+ run : swift build -c release --product aetherctl
158+
232159 # The docs site (aetherengine-website) validates every heading anchor at build time, but it
233160 # lives in another repo and only builds AFTER a push to main, so a broken anchor ships first
234161 # and is found second: `docs/api.md` linked `formats.md#dolby-vision` against a heading that
@@ -240,7 +167,7 @@ jobs:
240167 runs-on : ubuntu-latest
241168 timeout-minutes : 5
242169 steps :
243- - uses : actions/checkout@v4
170+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
244171
245172 - name : Validate relative links and heading anchors in the published docs
246173 run : python3 Scripts/check-doc-links.py
0 commit comments