google / struct2tensor

struct2tensor is a library for parsing and manipulating structured data inside of tensorflow.
Apache License 2.0
34 stars 21 forks source link

Add a [reusable] workflow for building wheels #42

Open peytondmurray opened 1 month ago

peytondmurray commented 1 month ago

This PR adds a workflow for building wheels. The workflow is triggered when

  1. A PR is made; PRs which break wheel builds will fail
  2. A release is made; if a release is made, the wheels are built and then uploaded to PyPI automatically. This requires trusted publishing to be set up in the repository. Please feel free to reach out if you need help with this, I'm happy to help set this up!
  3. Whenever the workflow is manually triggered, in which case it will also upload to PyPI automatically.
peytondmurray commented 1 month ago

@aktech Would appreciate your input, particularly on the part that triggers the reusable workflow.

peytondmurray commented 1 month ago

Also, I am guessing the extra files like bazel-* and wheel is committed accidentally.

Ugh, yes, these are added to a .gitignore in #40. I've removed these files here in this PR now.

peytondmurray commented 3 weeks ago

@hassler-google Is there anything else we need to do here? If not, could you please approve the workflow, then merge?