diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc0333f..5599898 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,3 +98,57 @@ jobs: with: command: upload args: --skip-existing dist/* + + macos: + runs-on: macos-latest + strategy: + matrix: + target: [x86_64, aarch64] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + - name: Upload wheels + uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist + - name: Publish to PyPI + if: "startsWith(github.ref, 'refs/tags/')" + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + with: + command: upload + args: --skip-existing dist/* + + sdist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build sdist + uses: PyO3/maturin-action@v1 + with: + command: sdist + args: --out dist + - name: Upload sdist + uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist + - name: Publish to PyPI + if: "startsWith(github.ref, 'refs/tags/')" + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + with: + command: upload + args: --skip-existing dist/* diff --git a/Cargo.toml b/Cargo.toml index 8192f11..3a5bb7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/insight-platform/Similari" readme = "README.md" keywords = ["machine-learning", "similarity", "tracking", "SORT", "DeepSORT"] categories = ["algorithms", "data-structures", "computer-vision", "science"] -version = "0.26.7" +version = "0.26.8" edition = "2021" license="Apache-2.0" rust-version = "1.66"