alexcrichton opened PR #1336 from auto-publish
to master
:
This commit updates the publication process for the cranelift suite of
crates. thepublish-all.sh
script was removed in favor of a new Rust
script located atci/publish.rs
This script is based off the one in
the [wasm-bindgen repository][wbg]. Additionally publication
instructions have been added toCONTRIBUTING.md
.The new process of publication looks like:
- Run
rustc ci/publish.rs && ./publish bump
- Commit the change and get it merged (either push it or go through a PR)
- Push a tag with the versions bumped
The CI for the last step, the tag push, will automatically publish the
crates once CI has finished.[wbg]: https://github.com/rustwasm/wasm-bindgen/blob/master/publish.rs
alexcrichton updated PR #1336 from auto-publish
to master
:
This commit updates the publication process for the cranelift suite of
crates. thepublish-all.sh
script was removed in favor of a new Rust
script located atci/publish.rs
This script is based off the one in
the [wasm-bindgen repository][wbg]. Additionally publication
instructions have been added toCONTRIBUTING.md
.The new process of publication looks like:
- Run
rustc ci/publish.rs && ./publish bump
- Commit the change and get it merged (either push it or go through a PR)
- Push a tag with the versions bumped
The CI for the last step, the tag push, will automatically publish the
crates once CI has finished.[wbg]: https://github.com/rustwasm/wasm-bindgen/blob/master/publish.rs
abrown requested bnjbvr for a review on PR #1336.
abrown requested sunfishcode for a review on PR #1336.
abrown requested bnjbvr, and sunfishcode for a review on PR #1336.
sunfishcode submitted PR Review.
sunfishcode submitted PR Review.
sunfishcode created PR Review Comment:
To my knowledge, cranelift-simplejit doesn't do anything special wrt cargo, and doesn't have any unusual dependencies. Can you point to what it is about this crate that causes problems?
sunfishcode created PR Review Comment:
This is unlikely, but could you append and prepend
"
to the version string, so that1.1.1
doesn't match1.1.11
?
sunfishcode created PR Review Comment:
Do we need to do anything special to tell it to only publish if this is the master branch, and not some random feature branch?
sunfishcode created PR Review Comment:
Would it be difficult to add a
publish
subcommand to do this part too? Assuming the merge doesn't get a new sha, it seems like we should be able to pick up the sha from the top of the local repo.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
It's sort of a weird part of Cargo, but if Cargo for some crates decides to put a
Cargo.lock
in the package, meaning it needs to resolve the crate graph. If a crate depends on something not published on crates.io, however, as would be the case in the "dry run" mode which happens on PRs, then this step will fail becauseCargo.lock
cannot be generated. I hit this locally when I prefixed all the crates withalexcrichton-*
and nothing existed on crates.io.Cargo decides to put
Cargo.lock
in crates that contains examples or binaries, and simplejit happened to be the only cranelift crate that met that criteria (had an example)
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
This'll only actually do things for tags (previous step enables), and only for tags that start with a
v
(I'm not great on regexes). Do you think it should be limited further though?
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Sure yeah, I'll edit this in
alexcrichton updated PR #1336 from auto-publish
to master
:
This commit updates the publication process for the cranelift suite of
crates. thepublish-all.sh
script was removed in favor of a new Rust
script located atci/publish.rs
This script is based off the one in
the [wasm-bindgen repository][wbg]. Additionally publication
instructions have been added toCONTRIBUTING.md
.The new process of publication looks like:
- Run
rustc ci/publish.rs && ./publish bump
- Commit the change and get it merged (either push it or go through a PR)
- Push a tag with the versions bumped
The CI for the last step, the tag push, will automatically publish the
crates once CI has finished.[wbg]: https://github.com/rustwasm/wasm-bindgen/blob/master/publish.rs
alexcrichton updated PR #1336 from auto-publish
to master
:
This commit updates the publication process for the cranelift suite of
crates. thepublish-all.sh
script was removed in favor of a new Rust
script located atci/publish.rs
This script is based off the one in
the [wasm-bindgen repository][wbg]. Additionally publication
instructions have been added toCONTRIBUTING.md
.The new process of publication looks like:
- Run
rustc ci/publish.rs && ./publish bump
- Commit the change and get it merged (either push it or go through a PR)
- Push a tag with the versions bumped
The CI for the last step, the tag push, will automatically publish the
crates once CI has finished.[wbg]: https://github.com/rustwasm/wasm-bindgen/blob/master/publish.rs
bnjbvr requested bnjbvr, and sunfishcode for a review on PR #1336.
alexcrichton closed without merge PR #1336.
Last updated: Nov 22 2024 at 16:03 UTC