Skip to content

Implement __SKIP_BUILD setting to prune test runners from builds for apple platforms #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

owenv
Copy link
Collaborator

@owenv owenv commented May 26, 2025

Broke this off of the test runner PR - it will be set on test runner targets on macOS to skip building them when they're not needed. We remove targets the same way dependency scopes are handled, preserving transitive dependencies through a removed target.

@owenv
Copy link
Collaborator Author

owenv commented May 26, 2025

@swift-ci test


// Configure the targets and create a BuildRequest.
let buildParameters = BuildParameters(configuration: "Debug")
let t1 = BuildRequest.BuildTargetInfo(parameters: buildParameters, target: workspace.target(named: "T1")!)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use #require to avoid force unwraps

@owenv
Copy link
Collaborator Author

owenv commented May 27, 2025

@swift-ci test

@owenv owenv merged commit 3d14acc into main May 27, 2025
23 of 24 checks passed
@owenv owenv deleted the owenv/skip branch May 27, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants