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

Check crate packaging in ci #120

Merged

Conversation

youyuanwu
Copy link
Collaborator

Cargo publish or package builds crates from clean state and previously caught some bugs.
Enable the check in generate.yml ci to prevent future breaks. This does not prolong overall ci time because it runs in parallel to the build.yaml ci which takes much more time.

All so cleans up the feature usages in mssf. Removing bundled_libs feature since fabric-metadata crate deps has been removed.

@youyuanwu youyuanwu marked this pull request as ready for review January 9, 2025 00:08
@youyuanwu youyuanwu merged commit 3b001c6 into Azure:main Jan 10, 2025
4 checks passed
@youyuanwu youyuanwu deleted the users/youyuanwu/check-cargo-crate-packaging branch January 10, 2025 01:17
youyuanwu pushed a commit that referenced this pull request Jan 14, 2025
Prepare for 0.0.19 release

#120 added CI packaging. Unfortunately, ```cargo package``` in 1.84
stable toolchain doesn't handle unpublished packages in the same
workspace (but cargo publish does)

This results in CI failures when bumping version (see #128).

The solution is to use nightly feature ```-Z package-workspace```, which
takes unpublished local versions into account.
A call for testing
(```https://github.com/rust-lang/cargo/issues/10948#issuecomment-2540365225```)
went out for 1.85.0-nightly (2024-12-01) and newer.

So install nightly as well and do that. Will need to be tweaked in a few
months when that setting hopefully stabilizes.

Also, replace action-rs/toolchain with dtolnay/rust-toolchain, since
action-rs/toolchain is no longer maintained.
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