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

Support for building gems and prepare release #171

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

cretz
Copy link
Member

@cretz cretz commented Oct 17, 2024

What was changed

  • Added build-gems workflow with gem building and smoke test
    • This was tested while this and another PR were in draft, but now has been set to only run after pushed to main
  • Moved the shared library a bit and added support for loading the Ruby-version-specific form if present
  • Moved dev dependencies out of gem
  • Updated Rust and Go dependencies

@cretz cretz requested a review from a team October 17, 2024 13:31
@cretz cretz marked this pull request as ready for review October 17, 2024 13:55
uses: arduino/setup-protoc@v3
with:
# TODO(cretz): Can upgrade proto when https://github.com/arduino/setup-protoc/issues/99 fixed
version: "23.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

Copy link
Contributor

Choose a reason for hiding this comment

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

To other reviewers: this has been moved to temporalio/Rakefile

working-directory: ./temporalio
cache-version: v1-${{ matrix.rubyPlatform }}

- name: Cross compile gems
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose that it will output files to temporalio/internal/bridge/3.[123]/temporalio_bridge.(extension). Is that exact?

Some comments on what this action will do would be useful to future readers.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Not really wanting to re-document what a separate action does here where we use it, but the internal/bridge.rb does have version specific loading

@mjameswh
Copy link
Contributor

Can you please brush up a bit what you envision to be the release procedure?

I don't think we need to formally include that in the repo just now, that can certainly wait until we get experience from doing a few releases. But having some idea of where you are heading to would help us in validating this PR.

@cretz
Copy link
Member Author

cretz commented Oct 17, 2024

Can you please brush up a bit what you envision to be the release procedure?

Yes, this will be documented internally alongside the release process for the other SDKs. Basically it's just downloading the gems artifacts from the build-gems GH workflow run and using gem publish. We have chosen to make this a human step in some of these newer SDKs, though we can automate it if we'd like.

Copy link
Contributor

@mjameswh mjameswh left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@cretz cretz merged commit f49e5a3 into temporalio:main Oct 18, 2024
6 checks passed
@cretz cretz deleted the build-gems branch October 18, 2024 13:23
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