Skip to content

Commit 104e14d

Browse files
committed
Merge branch 'master' into renovate/crate-pyo3-vulnerability
2 parents 8181ae9 + d8dae10 commit 104e14d

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

.github/workflows/python-test.yaml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -61,37 +61,38 @@ jobs:
6161
3.13
6262
3.14
6363
64-
- name: Calculate openssl-vendored
65-
shell: bash
66-
id: is-openssl-vendored
64+
- name: Build wheels (x86_64)
65+
if: matrix.target == 'x86_64'
6766
run: |
68-
if [[ "${{ startsWith(matrix.target, 'x86') }}" == "true" ]]; then
69-
echo "enabled=" >> $GITHUB_OUTPUT
70-
else
71-
echo "enabled=--features openssl-vendored" >> $GITHUB_OUTPUT
72-
fi
67+
docker run --rm \
68+
-v "${{ github.workspace }}:/io" \
69+
-w /io/impit-python \
70+
quay.io/pypa/manylinux2014_x86_64:latest \
71+
bash -c '
72+
set -e
73+
yum update -y
74+
yum install -y openssl openssl-devel perl perl-IPC-Cmd
7375
74-
- name: Build wheels
76+
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
77+
source "$HOME/.cargo/env"
78+
79+
cpython3.13 -m pip install maturin
80+
81+
cpython3.13 -m maturin build --release --out dist --interpreter 3.10 3.11 3.12 3.13 3.13t 3.14 3.14t --sdist
82+
'
83+
84+
- name: Build wheels (aarch64)
85+
if: matrix.target == 'aarch64'
7586
uses: PyO3/maturin-action@v1
7687
with:
7788
working-directory: impit-python
78-
target: ${{ matrix.target }}
79-
args: --release --out dist --interpreter '3.10 3.11 3.12 3.13 3.13t 3.14 3.14t' ${{ matrix.target == 'x86_64' && '--sdist' || '' }}
89+
target: aarch64
90+
args: --release --out dist --interpreter '3.10 3.11 3.12 3.13 3.13t 3.14 3.14t'
8091
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
81-
manylinux: ${{ matrix.target == 'x86_64' && 'auto' || matrix.target == 'aarch64' && '2_28' }}
92+
manylinux: "2_28"
8293
before-script-linux: |
83-
case "${{ matrix.target }}" in
84-
"aarch64" | "armv7" | "s390x" | "ppc64le")
85-
# NOTE: pypa/manylinux docker images are Debian based
86-
sudo apt-get update
87-
sudo apt-get install -y pkg-config libssl-dev perl
88-
;;
89-
"x86" | "x86_64")
90-
# NOTE: rust-cross/manylinux docker images are CentOS based
91-
yum update -y
92-
yum install -y openssl openssl-devel perl perl-IPC-Cmd
93-
;;
94-
esac
94+
sudo apt-get update
95+
sudo apt-get install -y pkg-config libssl-dev perl
9596
9697
- name: Upload wheels
9798
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)