Skip to content

ci: add EXCLUDED_ARCHS=x86_64 to eliminate redundant x86_64 builds#306

Merged
p-linnane merged 1 commit into
mainfrom
ci/exclude-x86_64-arch
Mar 30, 2026
Merged

ci: add EXCLUDED_ARCHS=x86_64 to eliminate redundant x86_64 builds#306
p-linnane merged 1 commit into
mainfrom
ci/exclude-x86_64-arch

Conversation

@p-linnane
Copy link
Copy Markdown
Member

Summary

  • Add EXCLUDED_ARCHS=x86_64 at the project level in project.pbxproj to propagate to SPM dependency targets during Xcode GUI builds
  • Add EXCLUDED_ARCHS=x86_64 as a command-line override on all xcodebuild invocations in the justfile and CI workflows

Without this, SPM targets (ArgumentParser, ZIPFoundation, macOSdbKit) were fully compiled and linked for x86_64 in addition to arm64 — ~30 redundant SwiftCompile steps plus module emission and linking per build. This also slowed CodeQL tracing since it intercepts every compiler invocation.

SPM dependency targets (ArgumentParser, ZIPFoundation, macOSdbKit) were
being fully compiled and linked for x86_64 in addition to arm64 because
`EXCLUDED_ARCHS` was only set at the app target level, not propagated to
SPM-generated targets. This added ~30 redundant SwiftCompile steps plus
linking — overhead that also slowed CodeQL tracing.

Add `EXCLUDED_ARCHS=x86_64` at the project level in `project.pbxproj`
(covers Xcode GUI builds) and as a command-line override on all
`xcodebuild` invocations in the justfile and CI workflows (covers CLI
and CI builds).

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
@p-linnane p-linnane merged commit 234b34e into main Mar 30, 2026
8 checks passed
@p-linnane p-linnane deleted the ci/exclude-x86_64-arch branch March 30, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant