Skip to content

Commit

Permalink
update publish_py.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Lips7 committed Jun 11, 2024
1 parent e5c8cce commit eadcc6c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# maturin generate-ci github
#
name: CI
name: publish_py

on:
push:
Expand Down Expand Up @@ -41,17 +41,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: cd
run: cd matcher_py
- name: Build wheels
uses: PyO3/maturin-action@v1
working-directory: ./matcher_py
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
working-directory: ./matcher_py
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist
Expand All @@ -74,17 +74,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: cd
run: cd matcher_py
- name: Build wheels
uses: PyO3/maturin-action@v1
working-directory: ./matcher_py
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
manylinux: musllinux_1_2
- name: Upload wheels
uses: actions/upload-artifact@v4
working-directory: ./matcher_py
with:
name: wheels-musllinux-${{ matrix.platform.target }}
path: dist
Expand All @@ -104,16 +104,16 @@ jobs:
with:
python-version: 3.8
architecture: ${{ matrix.platform.target }}
- name: cd
run: cd matcher_py
- name: Build wheels
uses: PyO3/maturin-action@v1
working-directory: ./matcher_py
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
working-directory: ./matcher_py
with:
name: wheels-windows-${{ matrix.platform.target }}
path: dist
Expand All @@ -132,16 +132,16 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: cd
run: cd matcher_py
- name: Build wheels
uses: PyO3/maturin-action@v1
working-directory: ./matcher_py
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
working-directory: ./matcher_py
with:
name: wheels-macos-${{ matrix.platform.target }}
path: dist
Expand All @@ -150,15 +150,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cd
run: cd matcher_py
- name: Build sdist
uses: PyO3/maturin-action@v1
working-directory: ./matcher_py
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v4
working-directory: ./matcher_py
with:
name: wheels-sdist
path: dist
Expand All @@ -172,6 +172,7 @@ jobs:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
working-directory: ./matcher_py
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
Expand Down

0 comments on commit eadcc6c

Please sign in to comment.