mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 09:16:46 +00:00
19 lines
704 B
Makefile
19 lines
704 B
Makefile
setup:
|
|
cargo install cross
|
|
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
|
|
docker buildx inspect --bootstrap
|
|
|
|
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 armv7-unknown-linux-musleabihf
|
|
cross build --release --locked --manifest-path=actix/Cargo.toml --target x86_64-unknown-linux-musl
|
|
|
|
docker: build
|
|
docker buildx build --push --tag sintan1729/chhoto-url:dev --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile.multiarch .
|
|
|
|
clean:
|
|
cargo clean --manifest-path=actix/Cargo.toml
|
|
rm -rf .docker
|
|
|
|
.PHONY: build
|