Skip to content

Commit

Permalink
ci: fixup 2fee10b
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Aug 8, 2024
1 parent 0b60a99 commit 1fa0003
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/pybraidz-chunked-iter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
sccache: "true"
working-directory: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter/dist

windows:
Expand All @@ -61,19 +61,19 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
sccache: "true"
working-directory: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows-${{ matrix.target }}
path: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter/dist

macos:
Expand All @@ -85,18 +85,18 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
sccache: "true"
working-directory: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter/dist

sdist:
Expand All @@ -112,18 +112,30 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-sdist
path: braidz-parser/braidz-chunked-iter/pybraidz-chunked-iter/dist

merge:
name: Merge wheels
runs-on: ubuntu-latest
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v4
with:
path: wheels
pattern: wheels-*
merge-multiple: true

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/pybraidz-chunked-iter')"
needs: [linux, windows, macos, sdist]
needs: [merge]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
path: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down

0 comments on commit 1fa0003

Please sign in to comment.