Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

ci: build the Swift helper gate on the toolchain that ships it

EtienneLescotcc0368fe6f70
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cad5e99db..7fcb0c20b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -304,12 +304,27 @@ jobs:
# real display, a real tap and a real speaker — is `npm run test:sck-audio-timeline:mac`,
# which cannot run here and is run by hand.
#
- # macos-14 for the same reason the compositor job uses it: Apple Silicon, matching what
- # ships. The release build runs too, because the executable targets are not covered by the
- # test target and `-c release` is what `build:native:mac` actually produces.
+ # `macos-latest`, matching `build.yml`'s arm64 leg — NOT `macos-14` like the compositor job
+ # above, and the difference is load bearing. A gate has to compile with the toolchain that
+ # actually ships the binary, or it fails on code that is fine and passes on code that is not.
+ # This job was written as `macos-14` by copying the job above and failed immediately:
+ # `ScreenCaptureRecorder.swift` has carried a trailing comma in an argument list since long
+ # before this change, which is Swift 6.1 syntax (SE-0439), and the macos-14 image is on Swift
+ # 5.10. Nothing was wrong with the file — every release builds it — the gate was just pointed
+ # at an older compiler than the one that builds releases. `swift --version` is printed for
+ # exactly that reason: when this job disagrees with `build.yml`, the toolchain is the first
+ # thing to check.
+ #
+ # NB the package still declares `swift-tools-version: 5.9`, which that trailing comma now
+ # contradicts. Left alone here rather than fixed in passing: it is pre-existing, unrelated to
+ # the audio timeline, and "which Swift does the helper actually require" deserves its own
+ # decision rather than being settled as a side effect of adding CI.
+ #
+ # The release build runs too, because the executable targets are not covered by the test
+ # target and `-c release` is what `build:native:mac` actually produces.
swift-macos-helper:
name: Swift test (macOS capture helper)
- runs-on: macos-14
+ runs-on: macos-latest
steps:
- uses: actions/checkout@v7
- name: Show toolchain