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

Add an Actions workflow for generating temporary binary releases #24

Open
str4d opened this issue Jun 1, 2022 · 0 comments
Open

Add an Actions workflow for generating temporary binary releases #24

str4d opened this issue Jun 1, 2022 · 0 comments

Comments

@str4d
Copy link
Contributor

str4d commented Jun 1, 2022

Per https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages it is possible to generate binary releases by creating Swift packages that include XCFrameworks. These can be distributed as ZIP files.

We should write an Actions workflow for PRs. On any change to a PR's branch, it:

  • Builds the XCFramework.
  • Creates a synthetic Swift package with the XCFramework as the sole target.
  • Bundles the package as a ZIP.
  • Uploads the ZIP as an Actions workflow artifact.
  • Sets the workflow status to the dependency string that needs to be pasted into e.g. ZcashLightClientKit.

This should make it much easier to test changes to the underlying Rust libraries:

  • Make change to Rust crates.
  • Make a PR on this repo that uses the altered Rust crates.

Once we have a Uniffi repo, this would become:

  • Make change to Rust crates.
  • Make a branch of the Uniffi repo that adds a patch using the altered Rust crates.
  • Make a PR on this repo that uses the branch of the Uniffi repo.
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

No branches or pull requests

1 participant