Skip to content

CI: Only run semver-checks for lib crates, fix spelling issues#134

Merged
joncinque merged 2 commits intosolana-program:mainfrom
joncinque:only-semver-lib
Aug 11, 2025
Merged

CI: Only run semver-checks for lib crates, fix spelling issues#134
joncinque merged 2 commits intosolana-program:mainfrom
joncinque:only-semver-lib

Conversation

@joncinque
Copy link
Contributor

@joncinque joncinque commented Aug 11, 2025

Problem

A publish failed on a proc-macro crate because semver-checks doesn't work on non-lib crates.

Summary of changes

Be a bit smarter, and only run semver-checks if the package has a crate-type that contains the word "lib", which means it'll catch cdylib, rlib, and lib.

At the same time, I removed cdylib from a few crates that didn't need it, and added a lib target to those that didn't explicitly declare it.

And finally, while adding the crates to the workspace, I had to fix some existing spelling mistakes that weren't caught before.

#### Problem

A publish failed on a proc-macro crate because semver-checks doesn't
work on non-lib crates.

#### Summary of changes

Be a bit smarter, and only run semver-checks if the package has a
crate-type that contains the word "lib", which means it'll catch
`cdylib`, `rlib`, and `lib`.

At the same time, I removed `cdylib` from a few crates that didn't need
it, and added a lib target to those that didn't explicitly declare it.
@joncinque joncinque requested a review from grod220 August 11, 2025 16:26
@joncinque joncinque changed the title CI: Only run semver-checks for lib crates CI: Only run semver-checks for lib crates, fix spelling issues Aug 11, 2025
Copy link
Member

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

LGTM!

@joncinque joncinque merged commit 68c721c into solana-program:main Aug 11, 2025
29 checks passed
@joncinque joncinque deleted the only-semver-lib branch August 11, 2025 17:57
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