mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 09:16:46 +00:00
19 lines
614 B
Makefile
19 lines
614 B
Makefile
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
|