Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Mar 9, 2024
1 parent 0209890 commit cd662d9
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
PYO3_CROSS_LIB_DIR: /opt/python/${{ matrix.python.abi }}/lib
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
target: ${{ matrix.target }}
manylinux: auto
command: build
Expand All @@ -34,7 +34,7 @@ jobs:
env:
PYO3_CROSS_LIB_DIR: /opt/python/${{ matrix.python.abi }}/lib
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
target: ${{ matrix.target }}
manylinux: auto
command: build
Expand Down Expand Up @@ -72,14 +72,14 @@ jobs:
- uses: messense/maturin-action@v1
name: build pylancelot for windows (${{ matrix.target }})
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
command: build
target: ${{ matrix.target }}
args: --interpreter=python${{ matrix.python.version }} --release --strip --manifest-path=./pylancelot/Cargo.toml
- uses: messense/maturin-action@v1
name: build pyflirt for windows (${{ matrix.target }})
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
command: build
target: ${{ matrix.target }}
args: --interpreter=python${{ matrix.python.version }} --release --strip --manifest-path=./pyflirt/Cargo.toml
Expand Down Expand Up @@ -131,15 +131,15 @@ jobs:
# needed due to: https://stackoverflow.com/a/56092773/87207
MACOSX_DEPLOYMENT_TARGET: 10.9
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
command: build
args: --interpreter=python${{ matrix.python.version }} --release --universal2 --strip --manifest-path=./pylancelot/Cargo.toml
- uses: messense/maturin-action@v1
name: build pyflirt for macos (universal2)
env:
MACOSX_DEPLOYMENT_TARGET: 10.9
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
command: build
args: --interpreter=python${{ matrix.python.version }} --release --universal2 --strip --manifest-path=./pyflirt/Cargo.toml
#
Expand All @@ -150,7 +150,7 @@ jobs:
env:
MACOSX_DEPLOYMENT_TARGET: 10.9
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
command: build
target: x86_64
args: --interpreter=python${{ matrix.python.version }} --release --strip --manifest-path=./pylancelot/Cargo.toml
Expand All @@ -159,7 +159,7 @@ jobs:
env:
MACOSX_DEPLOYMENT_TARGET: 10.9
with:
maturin-version: 0.14.6
maturin-version: 1.5.0
command: build
target: x86_64
args: --interpreter=python${{ matrix.python.version }} --release --strip --manifest-path=./pyflirt/Cargo.toml
Expand All @@ -178,22 +178,9 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
- uses: actions/download-artifact@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[build]
- name: build package
run: |
python -m build
- name: upload package artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
path: dist/*
path: dist/
- name: publish package
uses: pypa/gh-action-pypi-publish@f5622bde02b04381239da3573277701ceca8f6a0 # release/v1
with:
Expand Down

0 comments on commit cd662d9

Please sign in to comment.