fix(ci): the lint ratchet, and SwiftPM's half-downloaded artifacts on the iOS runners

The import sheet no longer sets state from its preset effect and is below the complexity limit; the trip shell's splash tests await their timers. The iOS and watch builds resolve their Swift packages first on a clean artifact cache, up to three times: a failed download from GitHub left a partial Capacitor xcframework behind and every later attempt stopped on it.
This commit is contained in:
Maurice
2026-11-08 11:05:06 +01:00
parent ac055d531f
commit 3fc7487b58
3 changed files with 92 additions and 47 deletions
+30
View File
@@ -121,6 +121,21 @@ jobs:
working-directory: client
run: npm run cap:sync -- ios
# SwiftPM leaves a half-downloaded binary target (Capacitor's xcframeworks)
# behind when a download from GitHub fails, and every later attempt then
# stops on "already exists in file system". Resolve on a clean artifact
# cache, up to three times, before the build needs the packages.
- name: Resolve the Swift packages
working-directory: client/ios/App
run: |
for attempt in 1 2 3; do
rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts
if xcodebuild -resolvePackageDependencies -project App.xcodeproj -scheme App; then exit 0; fi
echo "Resolving the Swift packages failed (attempt $attempt of 3)"
sleep 20
done
exit 1
# No -sdk: the scheme builds the embedded watch app and its complications
# against the watchOS simulator SDK and the rest against the iOS one.
- name: Build for the simulator
@@ -220,6 +235,21 @@ jobs:
xcrun simctl list runtimes | grep -q watchOS || xcodebuild -downloadPlatform watchOS
xcrun simctl list runtimes
# SwiftPM leaves a half-downloaded binary target (Capacitor's xcframeworks)
# behind when a download from GitHub fails, and every later attempt then
# stops on "already exists in file system". Resolve on a clean artifact
# cache, up to three times, before the build needs the packages.
- name: Resolve the Swift packages
working-directory: client/ios/App
run: |
for attempt in 1 2 3; do
rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts
if xcodebuild -resolvePackageDependencies -project App.xcodeproj -scheme App; then exit 0; fi
echo "Resolving the Swift packages failed (attempt $attempt of 3)"
sleep 20
done
exit 1
- name: Build the watch app for the simulator
working-directory: client/ios/App
run: |