Skip to content
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

Proof of Concept: First class support for steps written in Swift. #795

Merged
merged 8 commits into from
Jul 18, 2022

Conversation

matrangam
Copy link
Contributor

@matrangam matrangam commented Jul 7, 2022

This is a proof of concept PR that demonstrates the CLI executing steps written in Swift.
The RFC that describes this effort is available here.
The CLI has two ways to run swift code:

  1. Executing the source code directly by locating the package (local/remote), compiling the code, then running the code. This is useful for testing and local dev.
  2. Executing a precompiled binary. This is more efficient and will be useful for released steps.

Once we're aligned on the approach, there will be efforts to formalize this in the bitrise yaml spec, as well as PRs against the vendor deps and tests.

bitrise.yml Outdated
@@ -12,6 +12,8 @@ workflows:
- integration-test
title: Runs tests
steps:
# - git::https://github.com/matrangam/bitrise-step-swift-test.git@main: { } # Binary

Choose a reason for hiding this comment

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

why commented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left these in here for testing purposes.
Each one of the steps illustrates a code path for the CLI executing the Swift Step example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Once we're aligned, these will be represented with proper tests.

@russellbstephens russellbstephens merged commit 9a04a6c into master Jul 18, 2022
@russellbstephens russellbstephens deleted the mm/swift_step branch July 18, 2022 17:08
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