Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Oct 31, 2025

Problem

Currently, the semver check on the publish workflow skips crates that do not have a crate-type set to "lib". Since the majority of crates do not have a crate-type set, this means that semver check is not performed.

Solution

Invert the check to detect if a crate is a proc-macro instead, which will then be skipped.

A successful run can be seen here: https://github.com/febo/solana-sdk/actions/runs/18980699432/job/54212177213

And a run where it is skipped since the crate is a proc-macro: https://github.com/febo/solana-sdk/actions/runs/18986872354/job/54232342051

@febo febo requested a review from joncinque October 31, 2025 17:59
Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@febo febo merged commit 5a48733 into anza-xyz:master Oct 31, 2025
26 checks passed
@febo febo deleted the detect-proc-macro branch October 31, 2025 23:33
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