-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add publish script for urdf and stl + unify all releases by de… (
#727) * chore: add publish script for urdf and stl + unify all releases by default * better cross platform publish support * publish in dry run within ci * publish scripts better errors, abort if a publish fails, with an exit code. * chore(rapier_urdf): fix warnings * chore(rapier-urdf): typo fix --------- Co-authored-by: Sébastien Crozet <developer@crozet.re>
- Loading branch information
Showing
7 changed files
with
82 additions
and
43 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
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
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,14 @@ | ||
#! /bin/bash | ||
|
||
if [[ "$PUBLISH_MODE" == 1 ]] | ||
then | ||
./scripts/publish-rapier.sh && | ||
./scripts/publish-testbeds.sh && | ||
./scripts/publish-extra-formats.sh | ||
else | ||
echo "Running in dry mode, re-run with \`PUBLISH_MODE=1 publish-all.sh\` to actually publish." | ||
|
||
DRY_RUN="--dry-run" ./scripts/publish-rapier.sh && | ||
DRY_RUN="--dry-run" ./scripts/publish-testbeds.sh && | ||
DRY_RUN="--dry-run" ./scripts/publish-extra-formats.sh | ||
fi |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
#!/bin/bash | ||
|
||
currdir=$(pwd) | ||
|
||
### Publish rapier3d-stl. | ||
cd "crates/rapier3d-stl" && cargo publish $DRY_RUN || exit 1 | ||
cd "$currdir" || exit 2 | ||
|
||
### Publish rapier3d-urdf. | ||
cd "crates/rapier3d-urdf" && cargo publish $DRY_RUN || exit 1 | ||
cd "$currdir" || exit 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
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,34 @@ | ||
#!/bin/bash | ||
|
||
gsed -v >> /dev/null | ||
if [ $? == 0 ]; then | ||
gsed=gsed | ||
else | ||
# Hopefully installed sed is the gnu one. | ||
gsed=sed | ||
fi | ||
|
||
tmp=$(mktemp -d) | ||
|
||
echo "$tmp" | ||
|
||
cp -r src "$tmp"/. | ||
cp -r src_testbed "$tmp"/. | ||
cp -r crates "$tmp"/. | ||
cp -r LICENSE README.md "$tmp"/. | ||
|
||
### Publish the 2D version. | ||
$gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed2d/Cargo.toml > "$tmp"/Cargo.toml | ||
$gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml | ||
currdir=$(pwd) | ||
cd "$tmp" && cargo publish $DRY_RUN | ||
cd "$currdir" || exit | ||
|
||
|
||
### Publish the 3D version. | ||
$gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed3d/Cargo.toml > "$tmp"/Cargo.toml | ||
$gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml | ||
cp -r LICENSE README.md "$tmp"/. | ||
cd "$tmp" && cargo publish $DRY_RUN | ||
|
||
rm -rf "$tmp" |