1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-10-16 13:27:03 -05:00
chhoto-url/Makefile

21 lines
768 B
Makefile
Raw Normal View History

setup:
cargo install cross
2024-03-24 23:27:31 -05:00
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 x86_64-unknown-linux-musl
docker: build
2024-03-24 23:27:31 -05:00
mkdir -p .docker/amd64 .docker/arm64
cp actix/target/aarch64-unknown-linux-musl/release/chhoto-url .docker/arm64/
cp actix/target/x86_64-unknown-linux-musl/release/chhoto-url .docker/amd64/
docker buildx build --push --tag sintan1729/chhoto-url:dev --platform linux/amd64,linux/arm64 .
clean:
cargo clean --manifest-path=actix/Cargo.toml
2024-03-24 23:27:31 -05:00
rm -rf .docker
.PHONY: build clean docker