Skip to content

Commit 36b8d14

Browse files
authored
Update release.yaml
1 parent 42b7ecb commit 36b8d14

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ jobs:
6868
python -m venv .venv
6969
source .venv/bin/activate
7070
pip install maturin
71-
- name: Build Linux binary (maturin)
72-
if: matrix.platform.os_name == 'Linux-x86_64'
71+
- name: Build Linux wheel
7372
run: |
7473
docker run --rm \
7574
-v $(pwd):/io \
75+
-e PYO3_PYTHON=/usr/bin/python3.10 \
7676
--entrypoint /usr/bin/bash \
77-
ghcr.io/pyo3/maturin:latest -c \
78-
"yum install -y openssl-devel python3-devel && cd /io && cargo build --locked --release --target ${{ matrix.platform.target }} && strip target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} && cd target/${{ matrix.platform.target }}/release && zip ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}"
77+
ghcr.io/pyo3/maturin -c \
78+
"yum install -y openssl-devel && maturin build --release --manifest-path src/pyocli/Cargo.toml --out target/wheels"
79+
if: matrix.platform.os_name == 'Linux-x86_64'
7980
- name: Build macOS binary
8081
if: matrix.platform.os_name == 'macOS-aarch64'
8182
run: |

0 commit comments

Comments
 (0)