diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9da6d0..b91143e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - 'v*' + - 'v*' workflow_dispatch: inputs: tag: @@ -19,29 +19,40 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - target: [x86_64, aarch64, armv7] + target: [x86_64, aarch64] steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.inputs.tag || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - name: Build wheels - uses: PyO3/maturin-action@v1 - with: - target: ${{ matrix.target }} - args: --release --out dist --find-interpreter - sccache: 'true' - manylinux: auto - - name: Upload wheels - uses: actions/upload-artifact@v3 - with: - name: wheels - path: dist + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.tag || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Build wheels (x86) + if: matrix.target == 'x86_64' + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + manylinux: auto + + - name: Build wheels (aarch64) + if: matrix.target == 'aarch64' + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + manylinux: 2_28 + - name: Upload wheels + uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist windows: runs-on: windows-latest @@ -49,27 +60,27 @@ jobs: matrix: target: [x64] steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.inputs.tag || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - architecture: ${{ matrix.target }} - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - 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 + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.tag || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + architecture: ${{ matrix.target }} + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - 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 macos: runs-on: macos-latest @@ -77,54 +88,54 @@ jobs: matrix: target: [x86_64, aarch64] steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.inputs.tag || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - 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 + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.tag || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - 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 sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.inputs.tag || github.ref }} - - 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 + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.tag || github.ref }} + - 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 release: name: Release runs-on: ubuntu-latest needs: [linux, windows, macos, sdist] steps: - - uses: actions/download-artifact@v3 - with: - name: wheels - - name: Publish to PyPI - uses: PyO3/maturin-action@v1 - with: - command: upload - args: --skip-existing * + - uses: actions/download-artifact@v3 + with: + name: wheels + - name: Publish to PyPI + uses: PyO3/maturin-action@v1 + with: + command: upload + args: --skip-existing * diff --git a/Cargo.toml b/Cargo.toml index dc7580d..7b28013 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ name = "biobear" [dependencies] arrow = {version = "47", features = ["pyarrow"]} datafusion = "32" -exon = {version = "0.3.8-beta.4", features = ["all"]} +exon = {version = "0.3.9", features = ["all"]} pyo3 = "0.19" thiserror = "1.0" tokio = {version = "1", features = ["rt"]}