From 2a118d42e7e399798f1ba837db04f3424caa068c Mon Sep 17 00:00:00 2001 From: Daulet Zhanguzin Date: Mon, 8 May 2023 12:29:55 -0700 Subject: [PATCH] add darwin-x86_64 artifact --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 07d33fc4..618e9919 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,15 @@ release-darwin-arm64: mkdir -p artifacts/all cp artifacts/darwin-arm64/libtokenizers.darwin-arm64.tar.gz artifacts/all/libtokenizers.darwin-arm64.tar.gz +release-darwin-x86_64: + cd lib && cargo build --release --target x86_64-apple-darwin + mkdir -p artifacts/darwin-x86_64 + cp lib/target/x86_64-apple-darwin/release/libtokenizers.a artifacts/darwin-x86_64/libtokenizers.a + cd artifacts/darwin-x86_64 && \ + tar -czf libtokenizers.darwin-x86_64.tar.gz libtokenizers.a + mkdir -p artifacts/all + cp artifacts/darwin-x86_64/libtokenizers.darwin-x86_64.tar.gz artifacts/all/libtokenizers.darwin-x86_64.tar.gz + release-linux-%: docker buildx build --platform linux/$* -f example/Dockerfile . -t tokenizers.linux-$* mkdir -p artifacts/linux-$*