ci: build against device SDK — CoreSimulator hangs on external-volume Xcode
Simulator-destination builds flap on CoreSimulatorService for an hour then die. Device SDK with signing disabled gives identical compile coverage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@@ -36,33 +36,24 @@ jobs:
|
|||||||
- name: Generate Xcode project
|
- name: Generate Xcode project
|
||||||
run: xcodegen generate
|
run: xcodegen generate
|
||||||
|
|
||||||
- name: Build (${{ matrix.configuration }}, iOS Simulator)
|
# Device SDK, signing disabled: CoreSimulator on the runner Mac is unreliable
|
||||||
|
# (Xcode on an external volume can't discover simulator runtimes and hangs).
|
||||||
|
# Compilation coverage is identical; no tests run on simulator yet anyway.
|
||||||
|
- name: Build (${{ matrix.configuration }}, iOS device SDK)
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
xcodebuild \
|
xcodebuild \
|
||||||
-project Jarvis.xcodeproj \
|
-project Jarvis.xcodeproj \
|
||||||
-scheme Jarvis \
|
-scheme Jarvis \
|
||||||
-configuration ${{ matrix.configuration }} \
|
-configuration ${{ matrix.configuration }} \
|
||||||
-sdk iphonesimulator \
|
-sdk iphoneos \
|
||||||
-destination 'generic/platform=iOS Simulator' \
|
-destination 'generic/platform=iOS' \
|
||||||
-derivedDataPath build \
|
-derivedDataPath build \
|
||||||
|
COMPILATION_CACHE_ENABLE_CACHING=NO \
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
build
|
build
|
||||||
|
|
||||||
# Compiles the test bundle. No test targets exist yet (see docs/BACKLOG.md #13).
|
# No test targets exist yet (see docs/BACKLOG.md #13). When a JarvisTests
|
||||||
# Replace with `xcodebuild test` once a JarvisTests target is added to project.yml.
|
# target is added, switch this to `xcodebuild test` on a simulator — after
|
||||||
- name: Build for Testing (Debug)
|
# fixing CoreSimulator on the runner (Xcode must live on the boot volume).
|
||||||
if: matrix.configuration == 'Debug'
|
|
||||||
run: |
|
|
||||||
set -o pipefail
|
|
||||||
xcodebuild \
|
|
||||||
-project Jarvis.xcodeproj \
|
|
||||||
-scheme Jarvis \
|
|
||||||
-configuration Debug \
|
|
||||||
-sdk iphonesimulator \
|
|
||||||
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 16' \
|
|
||||||
-derivedDataPath build \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
build-for-testing
|
|
||||||
|
|||||||
Reference in New Issue
Block a user