Skip to content

Commit

Permalink
add darwin-x86_64 artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Daulet Zhanguzin committed May 8, 2023
1 parent f3f1a0e commit 2a118d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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-$*
Expand Down

0 comments on commit 2a118d4

Please sign in to comment.