Skip to content

Conversation

@egiurleo
Copy link
Contributor

@egiurleo egiurleo commented Jan 10, 2025

Ignore this for now -- working on the best approach!

Follow up to #3272

After doing some testing on the Sorbet project, we realized that we want to package pre-built headers along with a binary (because some of the headers are only generated during the compilation process), and also that Bazel works a lot better with static libraries, hence uploading libprism.a rather than the dylib or so file.

I tested this job on the Shopify fork to make sure it still works.

1. Package the headers along with the binary
2. Package `libprism.a` instead of the dynamically built binary
@egiurleo egiurleo force-pushed the upload-headers-during-release branch from 34115e4 to 4ea019e Compare January 10, 2025 16:09
files: |
build/libprism.so
build/libprism.dylib
files: prism-${{ matrix.os }}.tar.gz
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure if this will be enough, since for mac and linux we still need to differentiate between arm64 and amd64 platforms, etc.

Besides, IMO prism-macos-latest.tar.gz is a weird name for the package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, I can look more into the differences between arm64 and amd64.

Copy link
Member

Choose a reason for hiding this comment

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

Based on this chart, it looks like to run amd64 macOS we need to add macos-13 to the os matrix too.

@egiurleo egiurleo marked this pull request as draft January 10, 2025 16:28
@egiurleo egiurleo changed the title Improve the build-artifacts GitHub action WIP: Improve the build-artifacts GitHub action Jan 10, 2025
@egiurleo
Copy link
Contributor Author

Closed in favor of #3391

@egiurleo egiurleo closed this Jan 10, 2025
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