Skip to content

Commit 2c65e92

Browse files
committed
chore: inline maturin action
1 parent 610316f commit 2c65e92

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

.github/workflows/python-test.yaml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -59,37 +59,27 @@ jobs:
5959
3.11
6060
3.12
6161
3.13
62-
3.13t
6362
3.14
64-
3.14t
65-
66-
- name: Install native build dependencies
67-
if: matrix.target == 'x86_64'
68-
run: |
69-
sudo apt-get update
70-
sudo apt-get install -y pkg-config libssl-dev perl
71-
72-
- name: Install Rust
73-
if: matrix.target == 'x86_64'
74-
uses: dtolnay/rust-toolchain@master
75-
with:
76-
toolchain: "1.93.0"
77-
78-
- name: Install sccache
79-
if: matrix.target == 'x86_64' && !startsWith(github.ref, 'refs/tags/')
80-
uses: mozilla-actions/sccache-action@v0.0.9
81-
82-
- name: Install maturin
83-
if: matrix.target == 'x86_64'
84-
run: pipx install maturin==1.11.5
8563
8664
- name: Build wheels (x86_64)
8765
if: matrix.target == 'x86_64'
88-
working-directory: impit-python
89-
env:
90-
SCCACHE_GHA_ENABLED: ${{ !startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}
91-
RUSTC_WRAPPER: ${{ !startsWith(github.ref, 'refs/tags/') && 'sccache' || '' }}
92-
run: maturin build --release --out dist --interpreter python3.10 python3.11 python3.12 python3.13 python3.13t python3.14 python3.14t --sdist
66+
run: |
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
75+
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+
'
9383
9484
- name: Build wheels (aarch64)
9585
if: matrix.target == 'aarch64'

0 commit comments

Comments
 (0)