2024-03-25 06:05:06 +00:00
|
|
|
USERNAME := ${USERNAME}
|
|
|
|
|
2024-03-25 04:03:18 +00:00
|
|
|
setup:
|
|
|
|
cargo install cross
|
2024-03-25 04:27:31 +00:00
|
|
|
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
|
|
|
|
docker buildx inspect --bootstrap
|
2024-03-25 04:03:18 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
cross build --release --locked --manifest-path=actix/Cargo.toml --target aarch64-unknown-linux-musl
|
2024-03-25 05:56:39 +00:00
|
|
|
cross build --release --locked --manifest-path=actix/Cargo.toml --target armv7-unknown-linux-musleabihf
|
2024-03-25 04:03:18 +00:00
|
|
|
cross build --release --locked --manifest-path=actix/Cargo.toml --target x86_64-unknown-linux-musl
|
|
|
|
|
|
|
|
docker: build
|
2024-03-25 06:05:06 +00:00
|
|
|
docker buildx build --push --tag ${USERNAME}/chhoto-url:dev --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile.multiarch .
|
2024-03-25 04:03:18 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
cargo clean --manifest-path=actix/Cargo.toml
|
|
|
|
|
2024-03-25 04:33:41 +00:00
|
|
|
.PHONY: build
|