]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Adding new target for m1 (#317)
authorNicolas Patry <patry.nicolas@protonmail.com>
Wed, 9 Aug 2023 07:14:23 +0000 (09:14 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 07:14:23 +0000 (09:14 +0200)
* Adding new target for m1

* Indent fix.

.github/workflows/python-release.yml

index eaeaef52b9d55a5e904896a7a13673e883e2dcdb..56b225e8fa23eac8445019972507789175bdada5 100644 (file)
@@ -121,6 +121,7 @@ jobs:
     strategy:
       matrix:
         python: ["3.9.13", "3.10.6", "3.11.0"]
+        target: ["12.0", "13.0"]
     steps:
       - name: Checkout repository
         uses: actions/checkout@v3
@@ -143,7 +144,7 @@ jobs:
           which python
           pip install -U setuptools wheel setuptools-rust awscli
           cd ./bindings/python
-          python setup.py bdist_wheel
+          MACOSX_DEPLOYMENT_TARGET=${{ matrix.target }} python setup.py bdist_wheel
           cd ../../
           aws s3 sync --exact-timestamps ./bindings/python/dist "s3://safetensors-releases/python/$DIST_DIR"