Skip to content

Commit

Permalink
Merge pull request #21 from shazamio/feat/add_segment_duration
Browse files Browse the repository at this point in the history
Add working-directory for Python bindings in CI workflow.
  • Loading branch information
dotX12 authored Feb 2, 2025
2 parents 1deb2af + ebb3cb7 commit 922f2e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: "bindings/python"
target: ${{ matrix.target }}
args: --release --out dist/dist --interpreter python${{ matrix.python-version }}
sccache: 'true'
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: "bindings/python"
target: ${{ matrix.target }}
args: --release --out dist/dist --interpreter python${{ matrix.python-version }}
sccache: 'true'
Expand Down Expand Up @@ -100,7 +102,7 @@ jobs:
context: .

- name: Copy wheels
run: docker run --rm -v $(pwd)/dist:/tmp shazamio_core cp -R /opt/dist /tmp
run: docker run --rm -v $(pwd)/bindings/python/dist:/tmp shazamio_core cp -R /opt/dist /tmp

- name: Upload wheels
uses: actions/upload-artifact@v4
Expand All @@ -115,6 +117,7 @@ jobs:
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
working-directory: "bindings/python"
command: sdist
args: --out dist
- name: Upload sdist
Expand All @@ -140,6 +143,7 @@ jobs:
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
working-directory: "bindings/python"
command: upload
args: --skip-existing bindings/python/dist/*

Expand Down

0 comments on commit 922f2e7

Please sign in to comment.