mirror of
https://github.com/edu4rdshl/unimap.git
synced 2026-07-17 23:24:49 +00:00
Update builder.sh
Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
This commit is contained in:
parent
c646e9c5d9
commit
83c75b753b
1 changed files with 14 additions and 9 deletions
23
builder.sh
23
builder.sh
|
|
@ -10,6 +10,14 @@ AARCH_TARGET="aarch64-unknown-linux-gnu"
|
||||||
OSX_TARGET="x86_64-apple-darwin"
|
OSX_TARGET="x86_64-apple-darwin"
|
||||||
MANPAGE_DIR="./$NAME.1"
|
MANPAGE_DIR="./$NAME.1"
|
||||||
|
|
||||||
|
if ! systemctl is-active docker >/dev/null 2>&1; then
|
||||||
|
echo "Docker is not running. Starting docker."
|
||||||
|
if ! sudo systemctl start docker; then
|
||||||
|
echo "Failed to start docker."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Linux build
|
# Linux build
|
||||||
echo "Building Linux artifact."
|
echo "Building Linux artifact."
|
||||||
if cargo build -q --release --target="$LINUX_TARGET"; then
|
if cargo build -q --release --target="$LINUX_TARGET"; then
|
||||||
|
|
@ -92,12 +100,9 @@ if command -v git >/dev/null; then
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#echo "Uploading crate to crates.io..."
|
# Stop docker
|
||||||
#if cargo publish --no-verify > /dev/null; then
|
echo "Stopping docker."
|
||||||
# echo "Crate uploaded."
|
if ! sudo systemctl stop docker; then
|
||||||
#else
|
echo "Failed to stop docker."
|
||||||
# echo "An error has occurred while uploading the crate to crates.io."
|
exit 1
|
||||||
# exit
|
fi
|
||||||
#fi
|
|
||||||
|
|
||||||
echo "All builds have passed!"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue