ci(py): paths

This commit is contained in:
əlemi 2024-09-09 23:18:48 +02:00
parent d1484b2eed
commit e28214a528
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -40,14 +40,14 @@ jobs:
working-directory: dist/py working-directory: dist/py
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
container: 'off' container: 'off'
args: --release --out . args: --release --out ./build
sccache: 'true' sccache: 'true'
manylinux: auto manylinux: auto
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: codemp-py-linux-${{ matrix.platform.target }} name: codemp-py-linux-${{ matrix.platform.target }}
path: dist/py path: dist/py/build
#musllinux: #musllinux:
# runs-on: ${{ matrix.platform.runner }} # runs-on: ${{ matrix.platform.runner }}
@ -73,14 +73,14 @@ jobs:
# with: # with:
# working-directory: dist/py # working-directory: dist/py
# target: ${{ matrix.platform.target }} # target: ${{ matrix.platform.target }}
# args: --release --out . # args: --release --out ./build
# sccache: 'true' # sccache: 'true'
# manylinux: musllinux_1_2 # TODO for manylinux it runs in a container without protoc! # manylinux: musllinux_1_2 # TODO for manylinux it runs in a container without protoc!
# - name: Upload wheels # - name: Upload wheels
# uses: actions/upload-artifact@v4 # uses: actions/upload-artifact@v4
# with: # with:
# name: codemp-py-musllinux-${{ matrix.platform.target }} # name: codemp-py-musllinux-${{ matrix.platform.target }}
# path: dist/py # path: dist/py/build
windows: windows:
runs-on: ${{ matrix.platform.runner }} runs-on: ${{ matrix.platform.runner }}
@ -104,13 +104,13 @@ jobs:
working-directory: dist/py working-directory: dist/py
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
container: 'off' container: 'off'
args: --release --out . args: --release --out ./build
sccache: 'true' sccache: 'true'
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: codemp-py-windows-${{ matrix.platform.target }} name: codemp-py-windows-${{ matrix.platform.target }}
path: dist/py path: dist/py/build
macos: macos:
runs-on: ${{ matrix.platform.runner }} runs-on: ${{ matrix.platform.runner }}
@ -133,13 +133,13 @@ jobs:
working-directory: dist/py working-directory: dist/py
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
container: 'off' container: 'off'
args: --release --out . args: --release --out ./build
sccache: 'true' sccache: 'true'
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: codemp-py-macos-${{ matrix.platform.target }} name: codemp-py-macos-${{ matrix.platform.target }}
path: dist/py path: dist/py/build
sdist: sdist:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -150,12 +150,12 @@ jobs:
with: with:
working-directory: dist/py working-directory: dist/py
command: sdist command: sdist
args: --out . args: --out ./build
- name: Upload sdist - name: Upload sdist
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: codemp-py-sdist name: codemp-py-sdist
path: dist/py path: dist/py/build
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -164,7 +164,7 @@ jobs:
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
pattern: codemp-py-* pattern: codemp-py-*
path: dist/py/wheels path: dist/py
- run: tree - run: tree
working-directory: dist/py working-directory: dist/py
- uses: PyO3/maturin-action@v1 - uses: PyO3/maturin-action@v1