Skip to content

Commit

Permalink
switch back working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
akprasad committed Jan 6, 2025
1 parent 09a1a4e commit 5e4ce6b
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ permissions:
jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand Down Expand Up @@ -48,7 +51,6 @@ jobs:
args: --release --out dist
sccache: 'true'
manylinux: auto
working-directory: ./bindings-python
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -57,6 +59,9 @@ jobs:

musllinux:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand All @@ -80,7 +85,6 @@ jobs:
args: --release --out dist
sccache: 'true'
manylinux: musllinux_1_2
working-directory: ./bindings-python
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -89,6 +93,9 @@ jobs:

windows:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand All @@ -108,7 +115,6 @@ jobs:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
working-directory: ./bindings-python
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -117,6 +123,9 @@ jobs:

macos:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand All @@ -135,7 +144,6 @@ jobs:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
working-directory: ./bindings-python
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -144,14 +152,16 @@ jobs:

sdist:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./bindings-python
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
working-directory: ./bindings-python
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
Expand All @@ -170,6 +180,9 @@ jobs:
contents: write
# Used to generate artifact attestation
attestations: write
defaults:
run:
working-directory: ./bindings-python
steps:
- uses: actions/download-artifact@v4
- name: Generate artifact attestation
Expand All @@ -184,4 +197,3 @@ jobs:
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
working-directory: ./bindings-python

0 comments on commit 5e4ce6b

Please sign in to comment.