mirror of
https://github.com/edu4rdshl/fhc.git
synced 2026-07-17 23:24:50 +00:00
(chore): update builder.sh
- Now we use podman, so checking por docker service doesn't makes sense - Use cross for everything, otherwise the build ends up in glibc versions mismatch
This commit is contained in:
parent
6701590efd
commit
12b42d9a05
1 changed files with 1 additions and 9 deletions
10
builder.sh
10
builder.sh
|
|
@ -10,17 +10,9 @@ AARCH_TARGET="aarch64-unknown-linux-gnu"
|
||||||
MANPAGE_DIR="./$NAME.1"
|
MANPAGE_DIR="./$NAME.1"
|
||||||
BIN_OUTPUT_DIR="./ghbinaries"
|
BIN_OUTPUT_DIR="./ghbinaries"
|
||||||
|
|
||||||
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 cross build -q --release --target="$LINUX_TARGET"; then
|
||||||
echo "Linux artifact build: SUCCESS"
|
echo "Linux artifact build: SUCCESS"
|
||||||
cp "target/$LINUX_TARGET/release/$NAME" "target/$LINUX_TARGET/release/$NAME-linux"
|
cp "target/$LINUX_TARGET/release/$NAME" "target/$LINUX_TARGET/release/$NAME-linux"
|
||||||
strip "target/$LINUX_TARGET/release/$NAME-linux"
|
strip "target/$LINUX_TARGET/release/$NAME-linux"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue