1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-25 23:28:37 -06:00
chhoto-url/Makefile

19 lines
614 B
Makefile
Raw Normal View History

setup:
cargo install cross
build:
cross build --release --locked --manifest-path=actix/Cargo.toml --target aarch64-unknown-linux-musl
cross build --release --locked --manifest-path=actix/Cargo.toml --target x86_64-unknown-linux-musl
docker: build
mkdir -p linux/amd64 linux/arm64
cp actix/target/aarch64-unknown-linux-musl/release/chhoto-url linux/aarch64/
cp actix/target/x86_64-unknown-linux-musl/release/chhoto-url linux/amd64/
docker buildx -t chhoto-url --platform linux/amd64,linux/arm64,linux/arm/v7 .
rm -rf linux
clean:
cargo clean --manifest-path=actix/Cargo.toml
.PHONY: build clean docker