Skip to content

Add autogenerated scheme pre/post action support#3307

Merged
brentleyjones merged 1 commit into
mainfrom
bj/add-autogen-scheme-actions
May 5, 2026
Merged

Add autogenerated scheme pre/post action support#3307
brentleyjones merged 1 commit into
mainfrom
bj/add-autogen-scheme-actions

Conversation

@brentleyjones
Copy link
Copy Markdown
Contributor

@brentleyjones brentleyjones commented May 5, 2026

Summary

  • add native autogenerated-scheme pre/post action support for build, run, test, and profile
  • add explicit run_build_post_actions_on_failure handling for build post-actions via the existing run API surface

Details

  • extend xcschemes.autogeneration_config(...) to carry run/profile/test action config and split build vs launch actions from xcschemes.autogeneration.run(...)
  • plumb autogenerated execution actions through the Starlark scheme writer, the autogeneration config param file, and the Swift xcschemes generator
  • emit runPostActionsOnFailure="YES" on BuildAction only when configured
  • expand tests across internal Starlark writers, automatic scheme generation, custom scheme parsing, and final XML emission

Testing

  • bazel test //tools/generators/lib/XCScheme:XCSchemeTests //tools/generators/xcschemes:xcschemes_tests //test/internal/xcschemes:xcschemes
  • bazel build //xcodeproj:xcodeproj //xcodeproj/internal:internal

@brentleyjones brentleyjones force-pushed the bj/add-autogen-scheme-actions branch from abc35f0 to d3db594 Compare May 5, 2026 19:48
Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones force-pushed the bj/add-autogen-scheme-actions branch from d3db594 to 5ce99d9 Compare May 5, 2026 19:57
@brentleyjones brentleyjones marked this pull request as ready for review May 5, 2026 19:59
@brentleyjones brentleyjones requested a review from a team as a code owner May 5, 2026 19:59
@brentleyjones brentleyjones enabled auto-merge (squash) May 5, 2026 19:59
Copy link
Copy Markdown
Contributor

@adincebic adincebic left a comment

Choose a reason for hiding this comment

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

Nice.

@brentleyjones brentleyjones merged commit eec1abb into main May 5, 2026
9 checks passed
@brentleyjones brentleyjones deleted the bj/add-autogen-scheme-actions branch May 5, 2026 21:36
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.

3 participants