-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1344 from fitzgen/cranelift-publish-script
Re-add Cranelift publish script
- Loading branch information
Showing
4 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# This is a convenience script for maintainers publishing a new version of | ||
# Cranelift to crates.io. To use, first bump the version number by running the | ||
# `scripts/cranelift-version.sh` script, then run this script, and run the | ||
# commands that it prints. | ||
# | ||
# Don't forget to push a git tag for this release! | ||
|
||
topdir=$(dirname "$0")/.. | ||
cd "$topdir" | ||
|
||
# Commands needed to publish. | ||
# | ||
# Note that libraries need to be published in topological order. | ||
|
||
for crate in \ | ||
entity \ | ||
bforest \ | ||
codegen/shared \ | ||
codegen/meta \ | ||
codegen \ | ||
frontend \ | ||
native \ | ||
preopt \ | ||
reader \ | ||
wasm \ | ||
module \ | ||
faerie \ | ||
umbrella \ | ||
simplejit \ | ||
object | ||
do | ||
echo cargo publish --manifest-path "cranelift/$crate/Cargo.toml" | ||
|
||
# Sleep for a few seconds to allow the server to update the index. | ||
# https://internals.rust-lang.org/t/changes-to-how-crates-io-handles-index-updates/9608 | ||
echo sleep 10 | ||
done | ||
|
||
echo git tag cranelift-v$(grep version cranelift/Cargo.toml | head -n 1 | cut -d '"' -f 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters